Class VaultEconomyAdapter.Legacy
java.lang.Object
com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter
com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter.Legacy
- All Implemented Interfaces:
EconomyAdapter
- Enclosing class:
VaultEconomyAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from class com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter
VaultEconomyAdapter.Legacy
-
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter
economy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Attempts to add money to an account.double
getBalance
(Account account) Gets the balance of the account.boolean
hasAccount
(Account account) Checks whether the given account exists.void
newAccount
(Account account) Attempts to create an account.boolean
Attempts to subtract money from an account.Methods inherited from class com.palmergames.bukkit.towny.object.economy.adapter.VaultEconomyAdapter
deleteAccount, getFormattedBalance, name, renameAccount, setBalance
-
Constructor Details
-
Legacy
public Legacy(net.milkbowl.vault.economy.Economy economy)
-
-
Method Details
-
add
Description copied from interface:EconomyAdapter
Attempts to add money to an account.- Specified by:
add
in interfaceEconomyAdapter
- Overrides:
add
in classVaultEconomyAdapter
- Parameters:
account
- The account.amount
- The amount to add.- Returns:
- A boolean indicating success.
-
subtract
Description copied from interface:EconomyAdapter
Attempts to subtract money from an account.- Specified by:
subtract
in interfaceEconomyAdapter
- Overrides:
subtract
in classVaultEconomyAdapter
- Parameters:
account
- The account.amount
- The amount to add.- Returns:
- A boolean indicating success.
-
hasAccount
Description copied from interface:EconomyAdapter
Checks whether the given account exists.- Specified by:
hasAccount
in interfaceEconomyAdapter
- Overrides:
hasAccount
in classVaultEconomyAdapter
- Parameters:
account
- The account.- Returns:
- A boolean indicating success.
-
getBalance
Description copied from interface:EconomyAdapter
Gets the balance of the account.- Specified by:
getBalance
in interfaceEconomyAdapter
- Overrides:
getBalance
in classVaultEconomyAdapter
- Parameters:
account
- The account.- Returns:
- A boolean indicating success.
-
newAccount
Description copied from interface:EconomyAdapter
Attempts to create an account.- Specified by:
newAccount
in interfaceEconomyAdapter
- Overrides:
newAccount
in classVaultEconomyAdapter
- Parameters:
account
- The name of the new account.
-