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 AccountTownyEconomyHandler.getTownyObjectAccount(String accountName) Methods in com.palmergames.bukkit.towny with parameters of type AccountModifier and TypeMethodDescriptionstatic booleanAdd funds to an account.static doubleTownyEconomyHandler.getBalance(@NotNull Account account) Returns the accounts current balancestatic booleanTownyEconomyHandler.hasAccount(Account account) static booleanReturns true if the account has enough moneystatic voidTownyLogger.logMoneyTransaction(Account a, double amount, Account b, String reason) static voidTownyEconomyHandler.removeAccount(Account account) Attempt to delete the economy account.static booleanTownyEconomyHandler.setBalance(Account account, double amount) static booleanAttempts 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 TypeClassDescriptionclassAn Account object representing a Player's account.Methods in com.palmergames.bukkit.towny.object that return AccountModifier and TypeMethodDescriptionEconomyHandler.getAccount()Gets theAccountassociated with this object.Resident.getAccount()@Nullable AccountResident.getAccountOrNull()Resident.getTeleportAccount()final @Nullable AccountTeleportRequest.teleportAccount()Methods in com.palmergames.bukkit.towny.object with parameters of type AccountModifier and TypeMethodDescriptionstatic TeleportRequestTeleportRequest.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 TypeClassDescriptionclassA variant of anAccountthat belongs to aGovernment.final classFor 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 booleanTownyServerAccount.addToServer(Account account, double amount, TownyWorld world) Adds money to the server account (used for towny closed economy.)voidCalled whenever an account money is deposited to an account.voidvoidbooleanPays another account the specified funds.static booleanTownyServerAccount.subtractFromServer(Account account, double amount, TownyWorld world) Removes money to the server account (used for towny closed economy.)voidCalled whenever an account money is withdrawn from an account.voidvoidConstructors 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 TypeMethodDescriptionbooleanAttempts to add money to an account.booleanbooleanbooleanbooleanbooleanvoidEconomyAdapter.deleteAccount(Account account) Removes an account.voidReserveEconomyAdapter.deleteAccount(Account account) voidReserveEconomyAdapter.Legacy.deleteAccount(Account account) voidVaultEconomyAdapter.deleteAccount(Account account) voidVaultUnlockedEconomyAdapter.deleteAccount(Account account) doubleEconomyAdapter.getBalance(Account account) Gets the balance of the account.doubleReserveEconomyAdapter.getBalance(Account account) doubleReserveEconomyAdapter.Legacy.getBalance(Account account) doubleVaultEconomyAdapter.getBalance(Account account) doubleVaultEconomyAdapter.Legacy.getBalance(Account account) doubleVaultUnlockedEconomyAdapter.getBalance(Account account) booleanEconomyAdapter.hasAccount(Account account) Checks whether the given account exists.booleanReserveEconomyAdapter.hasAccount(Account account) booleanReserveEconomyAdapter.Legacy.hasAccount(Account account) booleanVaultEconomyAdapter.hasAccount(Account account) booleanVaultEconomyAdapter.Legacy.hasAccount(Account account) booleanVaultUnlockedEconomyAdapter.hasAccount(Account account) voidEconomyAdapter.newAccount(Account account) Attempts to create an account.voidReserveEconomyAdapter.Legacy.newAccount(Account account) voidReserveEconomyAdapter.newAccount(Account account) voidVaultEconomyAdapter.Legacy.newAccount(Account account) voidVaultEconomyAdapter.newAccount(Account account) voidVaultUnlockedEconomyAdapter.newAccount(Account account) booleanEconomyAdapter.renameAccount(Account account, String newName) Renames an account.booleanReserveEconomyAdapter.renameAccount(Account account, String newName) booleanVaultEconomyAdapter.renameAccount(Account account, String newName) booleanVaultUnlockedEconomyAdapter.renameAccount(Account account, String newName) booleanEconomyAdapter.setBalance(Account account, double amount) Sets the balance of the account.booleanReserveEconomyAdapter.Legacy.setBalance(Account account, double amount) booleanReserveEconomyAdapter.setBalance(Account account, double amount) booleanVaultEconomyAdapter.setBalance(Account account, double amount) booleanVaultUnlockedEconomyAdapter.setBalance(Account account, double amount) booleanAttempts to subtract money from an account.booleanbooleanbooleanbooleanboolean -
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 AccountTransaction.getReceivingAccount()@Nullable AccountTransaction.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 voidTeleportWarmupTimerTask.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.