Uses of Class
com.palmergames.bukkit.towny.object.economy.Account
Package
Description
-
Uses of Account in com.palmergames.bukkit.towny
Modifier and TypeMethodDescriptionstatic @Nullable Account
TownyEconomyHandler.getTownyObjectAccount
(String accountName) Modifier and TypeMethodDescriptionstatic boolean
Add funds to an account.static double
TownyEconomyHandler.getBalance
(@NotNull Account account) Returns the accounts current balancestatic boolean
TownyEconomyHandler.hasAccount
(Account account) static boolean
Returns true if the account has enough moneystatic void
TownyLogger.logMoneyTransaction
(Account a, double amount, Account b, String reason) static void
TownyEconomyHandler.removeAccount
(Account account) Attempt to delete the economy account.static boolean
TownyEconomyHandler.setBalance
(Account account, double amount) static boolean
Attempts to remove an amount from an account -
Uses of Account in com.palmergames.bukkit.towny.confirmations
ModifierConstructorDescriptionConfirmationTransaction
(Supplier<Double> costSupplier, Account payee, String loggedMessage) Deprecated.ConfirmationTransaction
(Supplier<Double> costSupplier, Account payee, String loggedMessage, Translatable insufficientFundsMessage) Deprecated.since 0.100.0.10 useConfirmationTransaction(Supplier, EconomyHandler, String, Translatable)
instead. -
Uses of Account in com.palmergames.bukkit.towny.event.deathprice
ModifierConstructorDescriptionDeathPriceEvent
(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer) NationPaysDeathPriceEvent
(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer, Nation nation) PlayerPaysDeathPriceEvent
(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer) TownPaysDeathPriceEvent
(Account payer, double amount, Resident deadResident, org.bukkit.entity.Player killer, Town town) -
Uses of Account in com.palmergames.bukkit.towny.event.economy
ModifierConstructorDescriptionBankTransactionEvent
(Account account, Transaction transaction) Called whenever a deposit or withdrawl is made to/from a Bank account associated with a Town or Nation. -
Uses of Account in com.palmergames.bukkit.towny.object
Modifier and TypeClassDescriptionclass
An Account object representing a Player's account.Modifier and TypeMethodDescriptionEconomyHandler.getAccount()
Gets theAccount
associated with this object.Resident.getAccount()
@Nullable Account
Resident.getAccountOrNull()
Resident.getTeleportAccount()
final @Nullable Account
TeleportRequest.teleportAccount()
Modifier and TypeMethodDescriptionvoid
Resident.setTeleportAccount
(Account payee) Deprecated.Deprecated as of 0.99.0.10, teleport request related values are no longer modifiable once the teleport has been requested.static TeleportRequest
TeleportRequest.teleportRequest
(long requestTime, @NotNull org.bukkit.Location destination, int cooldown, double teleportCost, @Nullable Account account) -
Uses of Account in com.palmergames.bukkit.towny.object.economy
Modifier and TypeClassDescriptionclass
A variant of anAccount
that belongs to aGovernment
.final class
For internal use only.Modifier and TypeMethodDescriptionstatic boolean
TownyServerAccount.addToServer
(Account account, double amount, TownyWorld world) Adds money to the server account (used for towny closed economy.)void
Called whenever an account money is deposited to an account.void
void
boolean
Pays another account the specified funds.static boolean
TownyServerAccount.subtractFromServer
(Account account, double amount, TownyWorld world) Removes money to the server account (used for towny closed economy.)void
Called whenever an account money is withdrawn from an account.void
void
ModifierConstructorDescriptionBankTransaction
(TransactionType type, long time, Account account, double amount, double balance, String reason) -
Uses of Account in com.palmergames.bukkit.towny.object.economy.adapter
Modifier and TypeMethodDescriptionboolean
Attempts to add money to an account.boolean
boolean
boolean
boolean
boolean
void
EconomyAdapter.deleteAccount
(Account account) Removes an account.void
ReserveEconomyAdapter.deleteAccount
(Account account) void
ReserveEconomyAdapter.Legacy.deleteAccount
(Account account) void
VaultEconomyAdapter.deleteAccount
(Account account) void
VaultUnlockedEconomyAdapter.deleteAccount
(Account account) double
EconomyAdapter.getBalance
(Account account) Gets the balance of the account.double
ReserveEconomyAdapter.getBalance
(Account account) double
ReserveEconomyAdapter.Legacy.getBalance
(Account account) double
VaultEconomyAdapter.getBalance
(Account account) double
VaultEconomyAdapter.Legacy.getBalance
(Account account) double
VaultUnlockedEconomyAdapter.getBalance
(Account account) boolean
EconomyAdapter.hasAccount
(Account account) Checks whether the given account exists.boolean
ReserveEconomyAdapter.hasAccount
(Account account) boolean
ReserveEconomyAdapter.Legacy.hasAccount
(Account account) boolean
VaultEconomyAdapter.hasAccount
(Account account) boolean
VaultEconomyAdapter.Legacy.hasAccount
(Account account) boolean
VaultUnlockedEconomyAdapter.hasAccount
(Account account) void
EconomyAdapter.newAccount
(Account account) Attempts to create an account.void
ReserveEconomyAdapter.Legacy.newAccount
(Account account) void
ReserveEconomyAdapter.newAccount
(Account account) void
VaultEconomyAdapter.Legacy.newAccount
(Account account) void
VaultEconomyAdapter.newAccount
(Account account) void
VaultUnlockedEconomyAdapter.newAccount
(Account account) boolean
EconomyAdapter.renameAccount
(Account account, String newName) Renames an account.boolean
ReserveEconomyAdapter.renameAccount
(Account account, String newName) boolean
VaultEconomyAdapter.renameAccount
(Account account, String newName) boolean
VaultUnlockedEconomyAdapter.renameAccount
(Account account, String newName) boolean
EconomyAdapter.setBalance
(Account account, double amount) Sets the balance of the account.boolean
ReserveEconomyAdapter.Legacy.setBalance
(Account account, double amount) boolean
ReserveEconomyAdapter.setBalance
(Account account, double amount) boolean
VaultEconomyAdapter.setBalance
(Account account, double amount) boolean
VaultUnlockedEconomyAdapter.setBalance
(Account account, double amount) boolean
Attempts to subtract money from an account.boolean
boolean
boolean
boolean
boolean
-
Uses of Account in com.palmergames.bukkit.towny.object.economy.transaction
Modifier and TypeMethodDescription@Nullable Account
Transaction.getReceivingAccount()
@Nullable Account
Transaction.getSendingAccount()
Modifier and TypeMethodDescription -
Uses of Account in com.palmergames.bukkit.towny.tasks
Modifier and TypeMethodDescriptionstatic void
TeleportWarmupTimerTask.requestTeleport
(@NotNull Resident resident, @NotNull org.bukkit.Location destination, int cooldown, @Nullable Account teleportAccount, double teleportCost) This does not refund any other teleport requests that might be active for the resident, useTeleportWarmupTimerTask.abortTeleportRequest(Resident)
first if you want them to be refunded.
ConfirmationTransaction(Supplier, EconomyHandler, String)
instead.