Class TownyServerAccount
java.lang.Object
com.palmergames.bukkit.towny.object.economy.Account
com.palmergames.bukkit.towny.object.economy.TownyServerAccount
- All Implemented Interfaces:
Identifiable,Nameable
For internal use only.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddMoney(double amount) static booleanaddToServer(Account account, double amount, TownyWorld world) Adds money to the server account (used for towny closed economy.)static booleansubtractFromServer(Account account, double amount, TownyWorld world) Removes money to the server account (used for towny closed economy.)protected booleansubtractMoney(double amount) Methods inherited from class com.palmergames.bukkit.towny.object.economy.Account
addObserver, asOfflinePlayer, canPayFromHoldings, deposit, getAuditor, getBukkitWorld, getCachedBalance, getCachedBalance, getEconomyHandler, getHoldingBalance, getHoldingBalance, getHoldingFormattedBalance, getName, getObservers, getUUID, getWorld, isPlayerAccount, payFromServer, payTo, payTo, payToServer, removeAccount, removeObserver, setAuditor, setBalance, setName, setPlayerAccount, setUUID, withdrawMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.palmergames.bukkit.towny.object.Nameable
getFormattedName
-
Field Details
-
ACCOUNT
-
-
Method Details
-
addMoney
protected boolean addMoney(double amount) -
subtractMoney
protected boolean subtractMoney(double amount) - Specified by:
subtractMoneyin classAccount
-
addToServer
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
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.
-