name: Gringotts
authors: [ jasticE, squidicuz, eXeC64, nikosgram, GroobleDierne, hhenrichsen ]
website: https://github.com/nikosgram/Gringotts

version: 2.12.5
main: org.gestern.gringotts.Gringotts
load: STARTUP
database: true

api-version: "1.18"

softdepend: [ PlaceholderAPI ]
loadbefore: [ Vault ]

libraries:
  - org.avaje:ebean:2.8.1

commands:
  vault:
    description: Accessing your vault commands
    usage: /vault
    aliases: v
    permission: gringotts.command.vault
  balance:
    description: Shows your vault balance
    usage: /balance
    aliases: money
  money:
    aliases: [ money, m ]
    description: Money actions
    usage: |
      /money
      /money stack
      /money withdraw <amount>
      /money deposit <amount>
      /money send <account> <amount>
  moneyadmin:
    aliases: [ moneyadm, mad ]
    description: Gringotts admin actions
    usage: |
      /moneyadmin balance <[type:]account>
      /moneyadmin add <[type:]account> <amount>
      /moneyadmin remove <[type:]account> <amount>
    permission: gringotts.admin
  gringotts:
    aliases: [ grin ]
    usage: |
      /gringotts reload
      /gringotts dependencies
      /gringotts denominations
    permission: gringotts.admin

permissions:
  gringotts.createvault:
    description: Create vaults
    default: true
    children:
      gringotts.createvault.player: true

  gringotts.createvault.admin:
    description: Create vault for other players/accounts
    default: op
  gringotts.createvault.player:
    description: Create player vaults
    default: true

  gringotts.usevault:
    description: Use any type of vault
    default: true
    children:
      gringotts.usevault.inventory: true
      gringotts.usevault.enderchest: true
  gringotts.usevault.inventory:
    description: Use player's inventory as 'vault'
    default: true
  gringotts.usevault.enderchest:
    description: Use player's enderchest inventory as vault
    default: true

  gringotts.command:
    description: Allow all user transaction commands
    default: true
    children:
      gringotts.transfer: true
      gringotts.command.withdraw: true
      gringotts.command.deposit: true
      gringotts.command.vault: true
      gringotts.command.vault.list: true
  gringotts.transfer:
    description: Allow money transfer commands
    default: true
  gringotts.command.withdraw:
    description: Allow withdrawal of money from chest storage to inventory.
    default: true
  gringotts.command.deposit:
    description: Allow deposit of money to chest storage from inventory.
    default: true
  gringotts.command.vault:
    description: Provides access to the /vault command
    default: true
  gringotts.command.vault.list:
    description: Provides access to the /vault list command
    default: true
  gringotts.command.vault.list.others:
    description: Provides access to the /vault list <account> command
    default: op

  gringotts.admin:
    description: Use all /moneyadmin commands
    default: op
