YAML:
version: '1.0'
mysql:
host: localhost
user: username
password: password
database: database
money:
moneySaveTypes: '#This is a comment, you can delete it. | Types: LOCAL and MYSQL
| Bank Money is automatically stored in MySQL.'
money_save: LOCAL
currency_symbol: $
single: Dollar
multiple: Dollars
YAML:
prefix: §a§lMoney §8» §7
bank_inventory_name: §8» §b§lBank Menu §8«
inventory_close: §8» §c§lClose
inventory_deposit: §8» §a§lDeposit
inventory_withdraw: §8» §c§lWithdraw
inventory_info_balance: §b§lBalance
chat_write_deposit: Please type now the amount to deposit in the chat. Sneak to cancel.
chat_write_withdraw: Please type now the amount to withdraw in the chat. Sneak to
cancel.
chat_message_deposit: You have §asuccessfully §7deposited §e%money%$!
chat_message_withdraw: You have §asuccessfully §7withdrawn §e%money%$!
chat_message_invalid: Your chat entry was invalid!
current_money: You currently have %money%$.
noPermission: You don't have enough rights to do this.
chat_not_enough_money: You don't have enough money to do this.
Java:
//Both APIs are the same, only the class names change.
public void example() {
Player player = Bukkit.getPlayer("example");
assert player != null;
MoneyAPI api = new MoneyAPI(player);
boolean hasMoney = api.hasMoney(10.50);
double money = api.getMoney();
//For example: 2,500.50$
String formatted = api.getFormattedMoney();
api.removeMoney(1.20);
api.addMoney(1.20);
api.resetMoney();
api.setMoney(1.20);
}