Class EconomyAccount
java.lang.Object
com.palmergames.bukkit.towny.object.economy.Account
com.palmergames.bukkit.towny.object.EconomyAccount
- All Implemented Interfaces:
Identifiable
,Nameable
An Account object representing a Player's account. In contrast to the
BankAccount
that represents Towns' and Nations' Accounts.- Author:
- ElgarL, Shade, Suneet Tipirneni (Siris), LlmDl
-
Constructor Summary
ModifierConstructorDescriptionprotected
EconomyAccount
(Resident resident, String name, UUID uuid, Supplier<TownyWorld> worldSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
addMoney
(double amount) 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
-
Constructor Details
-
EconomyAccount
protected EconomyAccount(Resident resident, String name, UUID uuid, Supplier<TownyWorld> worldSupplier)
-
-
Method Details
-
addMoney
protected boolean addMoney(double amount) -
subtractMoney
protected boolean subtractMoney(double amount) - Specified by:
subtractMoney
in classAccount
-