Class TownyServerAccount

java.lang.Object
com.palmergames.bukkit.towny.object.economy.Account
com.palmergames.bukkit.towny.object.economy.TownyServerAccount
All Implemented Interfaces:
Identifiable, Nameable

@Internal public final class TownyServerAccount extends Account
For internal use only.
  • Field Details

  • Method Details

    • addMoney

      protected boolean addMoney(double amount)
      Specified by:
      addMoney in class Account
    • subtractMoney

      protected boolean subtractMoney(double amount)
      Specified by:
      subtractMoney in class Account
    • addToServer

      public static boolean addToServer(Account account, double amount, TownyWorld world)
      Adds money to the server account (used for towny closed economy.)
      Parameters:
      account - Account sending money to the server.
      amount - The amount to deposit.
      world - The world of the deposit.
      Returns:
      A boolean indicating success.
    • subtractFromServer

      public static boolean subtractFromServer(Account account, double amount, TownyWorld world)
      Removes money to the server account (used for towny closed economy.)
      Parameters:
      amount - The amount to withdraw.
      world - The world of the withdraw.
      Returns:
      A boolean indicating success.