Skip to content

Commit

Permalink
Merge pull request #9 from cloudnode-pro/6-point-of-sale
Browse files Browse the repository at this point in the history
Added bank cards and POS
  • Loading branch information
zefir-git committed Jul 30, 2023
2 parents 19e598d + d9722db commit a2f1162
Show file tree
Hide file tree
Showing 15 changed files with 1,540 additions and 192 deletions.
50 changes: 30 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,44 @@ A multi-account economy plugin.
| Command | Description | Aliases |
|-------------------------------------------------------|------------------------------------------|------------------------------|
| `/bank` | Show plugin version | |
| `/bank balance[account]` | List accounts or show balance of account | `bal`, `account`, `accounts` |
| `/bank balance [account]` | List accounts or show balance of account | `bal`, `account`, `accounts` |
| `/bank balance --player <player>` | List accounts of another player | `bal`, `account`, `accounts` |
| `/bank transfer <from> <to> <amount> [description]` | Move money to another account | `send`, `pay` |
| `/bank transactions <account> [page=1\|--all]` | List transactions | `history` |
| `/bank create <PERSONAL\|BUSINESS>` | Create a new account | `new` |
| `/bank create <PERSONAL\|BUSINESS> --player <player>` | Create an account for another player | `new` |
| `/bank instrument <account>` | Create instrument (bank card) | `card` |
| `/bank delete <account>` | Delete an account | |
| `/bank setbalance <account> <balance\|Infinity>` | Set the balance of an account | `setbal` |
| `/bank setname <account> [name]` | Set an account's name | `rename` |
| `/bank reload` | Reload configuration | |
| `/pos <account> <price> [description]` | Create a new POS | |

## Permissions
| Permission | Command | Description | Recommended group |
|------------------------------|----------------|-------------------------------------------------------|-------------------|
| `bank.command` | `bank` | Required to use any bank command | `default` |
| `bank.balance.self` | `balance` | List your accounts and check own balance | `default` |
| `bank.transfer.self` | `transfer` | Transfer money between your accounts | `default` |
| `bank.transfer.other` | `transfer` | Send money to another player's account | `default` |
| `bank.history` | `transactions` | List transactions for an account you own | `default` |
| `bank.account.create` | `create` | Create a new account | `default` |
| `bank.set.name` | `setname` | Set the name of an account | `default` |
| `bank.delete` | `delete` | Delete an account | `default` |
| `bank.reload` | `reload` | Reload the plugin | `admin` |
| `bank.account.create.other` | `create` | Create a new account for another player | `admin` |
| `bank.account.create.bypass` | `create` | Bypass the maximum account limit | `admin` |
| `bank.set.balance` | `setbalance` | Set the balance of an account | `admin` |
| `bank.set.name.other` | `setname` | Set the name of an account owned by another player | `admin` |
| `bank.set.name.personal` | `setname` | Allow renaming personal accounts (not recommended) | `admin` |
| `bank.delete.other` | `delete` | Delete an account owned by another player | `admin` |
| `bank.delete.personal` | `delete` | Bypass `prevent-close-last-personal` | `admin` |
| `bank.history.other` | `transactions` | List transactions of accounts owned by another player | `admin` |
| Permission | Command | Description | Recommended group |
|---------------------------------|----------------|-------------------------------------------------------------------------------------------|-------------------|
| `bank.command` | `bank` | Required to use any bank command | `default` |
| `bank.balance.self` | `balance` | List your accounts and check own balance | `default` |
| `bank.transfer.self` | `transfer` | Transfer money between your accounts | `default` |
| `bank.transfer.other` | `transfer` | Send money to another player's account | `default` |
| `bank.history` | `transactions` | List transactions for an account you own | `default` |
| `bank.account.create` | `create` | Create a new account | `default` |
| `bank.instrument.create` | `instrument` | Create an instrument (bank card) | `default` |
| `bank.set.name` | `setname` | Set the name of an account | `default` |
| `bank.delete` | `delete` | Delete an account | `default` |
| `bank.pos.create` | `pos` | Create a new POS | `default` |
| `bank.pos.use` | | Buy items from a POS | `default` |
| `bank.reload` | `reload` | Reload the plugin | `admin` |
| `bank.account.create.other` | `create` | Create a new account for another player | `admin` |
| `bank.account.create.bypass` | `create` | Bypass the maximum account limit | `admin` |
| `bank.instrument.create.other` | `instrument` | Create an instrument for account you don't own. Also allows giving cards to other players | `admin` |
| `bank.instrument.create.bypass` | `instrument` | Bypass the configuration option `instruments.require-item` | `admin` |
| `bank.set.balance` | `setbalance` | Set the balance of an account | `admin` |
| `bank.set.name.other` | `setname` | Set the name of an account owned by another player | `admin` |
| `bank.set.name.personal` | `setname` | Allow renaming personal accounts (not recommended) | `admin` |
| `bank.delete.other` | `delete` | Delete an account owned by another player | `admin` |
| `bank.delete.personal` | `delete` | Bypass `prevent-close-last-personal` | `admin` |
| `bank.pos.create.other` | `pos` | Create a new POS for another player's account | `admin` |
| `bank.pos.create.personal` | `pos` | Bypass config option `pos.allow-personal = false` | `admin` |
| `bank.pos.use.other` | | Buy items from a POS without being the card's account owner | `admin` |
| `bank.history.other` | `transactions` | List transactions of accounts owned by another player | `admin` |
Loading

0 comments on commit a2f1162

Please sign in to comment.