Uses of Class
com.palmergames.bukkit.towny.object.economy.Account
Packages that use Account
Package
Description
-
Uses of Account in com.palmergames.bukkit.towny
Methods in com.palmergames.bukkit.towny that return AccountModifier and TypeMethodDescriptionstatic @Nullable Account
TownyEconomyHandler.getTownyObjectAccount
(String accountName) Methods in com.palmergames.bukkit.towny with parameters of type AccountModifier 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
Methods in com.palmergames.bukkit.towny.confirmations that return AccountConstructors in com.palmergames.bukkit.towny.confirmations with parameters of type AccountModifierConstructorDescriptionConfirmationTransaction
(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
Fields in com.palmergames.bukkit.towny.event.deathprice declared as AccountMethods in com.palmergames.bukkit.towny.event.deathprice that return AccountConstructors in com.palmergames.bukkit.towny.event.deathprice with parameters of type AccountModifierConstructorDescriptionDeathPriceEvent
(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
Methods in com.palmergames.bukkit.towny.event.economy that return AccountConstructors in com.palmergames.bukkit.towny.event.economy with parameters of type AccountModifierConstructorDescriptionBankTransactionEvent
(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
Subclasses of Account in com.palmergames.bukkit.towny.objectModifier and TypeClassDescriptionclass
An Account object representing a Player's account.Methods in com.palmergames.bukkit.towny.object that return AccountModifier and TypeMethodDescriptionEconomyHandler.getAccount()
Gets theAccount
associated with this object.Resident.getAccount()
@Nullable Account
Resident.getAccountOrNull()
Resident.getTeleportAccount()
final @Nullable Account
TeleportRequest.teleportAccount()
Methods in com.palmergames.bukkit.towny.object with parameters of type AccountModifier and TypeMethodDescriptionstatic 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
Subclasses of Account in com.palmergames.bukkit.towny.object.economyModifier and TypeClassDescriptionclass
A variant of anAccount
that belongs to aGovernment
.final class
For internal use only.Methods in com.palmergames.bukkit.towny.object.economy that return AccountMethods in com.palmergames.bukkit.towny.object.economy with parameters of type AccountModifier 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
Constructors in com.palmergames.bukkit.towny.object.economy with parameters of type AccountModifierConstructorDescriptionBankTransaction
(TransactionType type, long time, Account account, double amount, double balance, String reason) -
Uses of Account in com.palmergames.bukkit.towny.object.economy.adapter
Methods in com.palmergames.bukkit.towny.object.economy.adapter with parameters of type AccountModifier 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
Methods in com.palmergames.bukkit.towny.object.economy.transaction that return AccountModifier and TypeMethodDescription@Nullable Account
Transaction.getReceivingAccount()
@Nullable Account
Transaction.getSendingAccount()
Methods in com.palmergames.bukkit.towny.object.economy.transaction with parameters of type AccountModifier and TypeMethodDescription -
Uses of Account in com.palmergames.bukkit.towny.tasks
Methods in com.palmergames.bukkit.towny.tasks with parameters of type AccountModifier 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.