Class EconomyAccount
java.lang.Object
com.palmergames.bukkit.towny.object.economy.Account
com.palmergames.bukkit.towny.object.EconomyAccount
- All Implemented Interfaces:
Nameable
Economy object which provides an interface with the Economy Handler.
- Author:
- ElgarL, Shade, Suneet Tipirneni (Siris)
-
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.object.economy.Account
cachedBalance
-
Constructor Summary
ModifierConstructorDescriptionprotected
EconomyAccount
(String name) protected
EconomyAccount
(String name, org.bukkit.World world) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addMoney
(double amount) org.bukkit.World
getWorld()
protected boolean
subtractMoney
(double amount) Methods inherited from class com.palmergames.bukkit.towny.object.economy.Account
addObserver, canPayFromHoldings, deposit, getAuditor, getBukkitWorld, getCachedBalance, getCachedBalance, getHoldingBalance, getHoldingBalance, getHoldingFormattedBalance, getName, getObservers, payFromServer, payTo, payTo, payToServer, removeAccount, removeObserver, setAuditor, setBalance, setName, 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
-
SERVER_ACCOUNT
-
-
Constructor Details
-
EconomyAccount
-
EconomyAccount
-
-
Method Details
-
addMoney
protected boolean addMoney(double amount) -
subtractMoney
protected boolean subtractMoney(double amount) - Specified by:
subtractMoney
in classAccount
-
getWorld
public org.bukkit.World getWorld()
-