The core economy system with many APIs
- Drop it into your /plugins folder.
- Restart your server.
Command | Parameter | Description |
---|---|---|
/money help | None |
Show help |
/money view | <account> |
Show balance of <account> |
/money create | <account> |
Open non-player <account> |
/money hide | <account> |
Hide <account> from /money top |
/money unhide | <account> |
Unhide <account> from /money top |
/money set | <target> <amount> |
Set <target> 's money at <amount> |
/money grant | <target> <amount> |
Grant <amount> to <target> |
/money top | <amount> |
Show the ranking up to <amount> |
/money stat | None |
Show current economy state (circulation, average money, number of account) |
Command | Parameter | Description | Permission |
---|---|---|---|
/money | None |
Show your money | pocketmoney.money |
/money help | None |
Show help | pocketmoney.help |
/money view | None |
Show balance of <account> |
pocketmoney.view |
/money create | <account> |
Open non-player <account> |
pocketmoney.create |
/money wd | <account> <amount> |
Withdraw <amount> from <account> |
pocketmoney.withdraw |
/money hide | <account> |
Hide <account> from /money top |
pocketmoney.hide |
/money unhide | <account> |
Unhide <account> from /money top |
pocketmoney.unhide |
/money top | <amount> |
Show the ranking up to <amount> |
pocketmoney.top |
/money pay | <target> <amount> |
Pay <target> <amount> |
pocketmoney.pay |
/money stat | None |
Show current economy state (circulation, average money, number of account) | pocketmoney.stat |
- Open "plugins/PocketMoney/messages.yml"
- Change messages
- Open "plugins/PocketMoney/system.yml"
- Change "default_money"
- Open "plugins/PocketMoney/ssystem.yml"
- Change "currency"
See src/PocketMoney/PocketMoney.php The first half of file is API.
- MoneyUpdateEvent: called when someone's money is changed.
- TransactionEvent: called when transaction(pay, withdraw) is performed.
If you have some questions about API, feel free to ask me in the forum or on Twitter.