These functions are found in RoyaleEconomy.apiHandler.balance:
double getBalance(String player) - Gets the purse balance of a player. String player could be either their username or their UUID parsed as string.
If you can choose between username and UUID, go with the UUID.
double getSharedBankBalance(String bankID) - Gets the purse balance of a player. String bankID could be get from player's uuid via getSharedBankID(String playerUUID).
Similar to the functions above, we have the void functions
- addBalance(String player, double toAdd)
- removeBalance(String player, double toRemove)
- setBalance(String player, double toSet)
- addBankBalance(String playerUUID, double toAdd)
- removeBankBalance(String playerUUID, double toRemove)
- setBankBalance(String playerUUID, double toSet)
- addSharedBankBalance(String bankID, double toAdd)
- removeSharedBankBalance(String bankID, double toRemove)
- setSharedBankBalance(String bankID, double toSet)
Using the functions above you can modify balances but make sure you check the amount you add/remove/set because the plugin won't check for negative values and there must be no negative values.