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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addMoney
(double amount) static boolean
addToServer
(Account account, double amount, TownyWorld world) Adds money to the server account (used for towny closed economy.)static boolean
subtractFromServer
(Account account, double amount, TownyWorld world) Removes money to the server account (used for towny closed economy.)protected boolean
subtractMoney
(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, payFromServer, payTo, payTo, payToServer, removeAccount, removeObserver, setAuditor, setBalance, setName, setUUID, withdraw
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
subtractMoney
in 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.
-