RoyaleEconomy
  • RoyaleEconomy Documentation [NOT UP TO DATE]
  • Hooks
  • PlaceholderAPI Support
  • Commands
    • royaleeconomy
    • talismans
    • killcoins
    • interest
    • coinsbag
    • reshop
    • balancetop
    • piggybank
    • bank
    • sharedbank
  • Menus
  • InputGUIs
  • Shops
  • Purse On Death
  • Sounds
  • Permissions
  • Coins Bags
  • Bank Upgrades
  • Interest
  • Kill Coins
  • Talismans
    • Random Coins Talisman
    • Percent Reducer Talisman
    • Death Saver Talisman
  • API
    • Events
    • Balance
    • BalanceTop
    • Bank
    • SharedBank
    • Interest
    • Kill Coins
    • Shops
    • Others
Powered by GitBook
On this page

Was this helpful?

  1. API

BalanceTop

BalanceTop Functions

These functions are found in RoyaleEconomy.apiHandler.balanceTop:

To this section is introduced a new object: TopBalanceElement which contains the name, coins to display in string format and position of a player. It contains 3 functions: getName(), getCoinsDisplay(), getPosition(). The first two are strings and the third one is integer.

Functions from this class will return TopBalanceElements ^

getTopPurse(int position) - Returns the TopBalanceElement for player on the specified position (positions start from 1).

String topPlayerPurse = RoyaleEconomy.apiHandler.balanceTop.getTopPurse(1).getName();
String displayCoins = RoyaleEconomy.apiHandler.balanceTop.getTopPurse(1).getCoinsDisplay();

The same applies for functions getTopBank(int position), getTopSharedBank(int position).

PreviousBalanceNextBank

Last updated 4 years ago

Was this helpful?