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
ConstructorsModifierConstructorDescriptionprotectedEconomyAccount(Resident resident, String name, UUID uuid, Supplier<TownyWorld> worldSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddMoney(double amount) protected booleansubtractMoney(double amount) Methods inherited from class 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Nameable
formattedName, getFormattedName
-
Constructor Details
-
EconomyAccount
protected EconomyAccount(Resident resident, String name, UUID uuid, Supplier<TownyWorld> worldSupplier)
-
-
Method Details
-
addMoney
-
subtractMoney
protected boolean subtractMoney(double amount) - Specified by:
subtractMoneyin classAccount
-