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

Interest

Interest Functions

These functions are found in RoyaleEconomy.apiHandler.interest:

There are 3 functions for getting the date: - String getInterestDateDetailed() » returns the date in detailed format (3 Days 2 Hours 1 Minute) - String getInterestDateNotDetailed() » returns the date in normal format (3 Days) - String getInterestDateShort() » returns the date in short format (3d2h1m)

You can also get the date and update it using the date expressed as a long number. - Long getLongDate() » returns the date as a long number, representing milliseconds. - void setInterestDate(Long date) » updates the interest date. Make sure the date is a long number representing milliseconds.

You can force an interest by forceInterest().

PreviousSharedBankNextKill Coins

Last updated 4 years ago

Was this helpful?