Class VaultEconomyProvider
java.lang.Object
com.earth2me.essentials.economy.vault.VaultEconomyProvider
- All Implemented Interfaces:
net.milkbowl.vault.economy.Economy
A goddamn Vault adapter, what more do you want?
Provides access to the EssentialsX economy for plugins that use the Vault API.
Developer note: for accessing Essentials/Vault economy functions from EssentialsX code, see
User
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionnet.milkbowl.vault.economy.EconomyResponse
bankBalance
(String name) net.milkbowl.vault.economy.EconomyResponse
bankDeposit
(String name, double amount) net.milkbowl.vault.economy.EconomyResponse
net.milkbowl.vault.economy.EconomyResponse
bankWithdraw
(String name, double amount) net.milkbowl.vault.economy.EconomyResponse
createBank
(String name, String player) net.milkbowl.vault.economy.EconomyResponse
createBank
(String name, OfflinePlayer player) boolean
createPlayerAccount
(String playerName) boolean
createPlayerAccount
(String playerName, String worldName) boolean
createPlayerAccount
(OfflinePlayer player) boolean
createPlayerAccount
(OfflinePlayer player, String worldName) net.milkbowl.vault.economy.EconomyResponse
deleteBank
(String name) net.milkbowl.vault.economy.EconomyResponse
depositPlayer
(String playerName, double amount) net.milkbowl.vault.economy.EconomyResponse
depositPlayer
(String playerName, String worldName, double amount) net.milkbowl.vault.economy.EconomyResponse
depositPlayer
(OfflinePlayer player, double amount) net.milkbowl.vault.economy.EconomyResponse
depositPlayer
(OfflinePlayer player, String worldName, double amount) format
(double amount) int
double
getBalance
(String playerName) double
getBalance
(String playerName, String world) double
getBalance
(OfflinePlayer player) double
getBalance
(OfflinePlayer player, String world) getBanks()
getName()
boolean
boolean
boolean
has
(OfflinePlayer player, double amount) boolean
has
(OfflinePlayer player, String worldName, double amount) boolean
hasAccount
(String playerName) boolean
hasAccount
(String playerName, String worldName) boolean
hasAccount
(OfflinePlayer player) boolean
hasAccount
(OfflinePlayer player, String worldName) boolean
net.milkbowl.vault.economy.EconomyResponse
isBankMember
(String name, String playerName) net.milkbowl.vault.economy.EconomyResponse
isBankMember
(String name, OfflinePlayer player) net.milkbowl.vault.economy.EconomyResponse
isBankOwner
(String name, String playerName) net.milkbowl.vault.economy.EconomyResponse
isBankOwner
(String name, OfflinePlayer player) boolean
net.milkbowl.vault.economy.EconomyResponse
withdrawPlayer
(String playerName, double amount) net.milkbowl.vault.economy.EconomyResponse
withdrawPlayer
(String playerName, String worldName, double amount) net.milkbowl.vault.economy.EconomyResponse
withdrawPlayer
(OfflinePlayer player, double amount) net.milkbowl.vault.economy.EconomyResponse
withdrawPlayer
(OfflinePlayer player, String worldName, double amount)
-
Constructor Details
-
VaultEconomyProvider
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfacenet.milkbowl.vault.economy.Economy
-
getName
- Specified by:
getName
in interfacenet.milkbowl.vault.economy.Economy
-
hasBankSupport
public boolean hasBankSupport()- Specified by:
hasBankSupport
in interfacenet.milkbowl.vault.economy.Economy
-
fractionalDigits
public int fractionalDigits()- Specified by:
fractionalDigits
in interfacenet.milkbowl.vault.economy.Economy
-
format
- Specified by:
format
in interfacenet.milkbowl.vault.economy.Economy
-
currencyNamePlural
- Specified by:
currencyNamePlural
in interfacenet.milkbowl.vault.economy.Economy
-
currencyNameSingular
- Specified by:
currencyNameSingular
in interfacenet.milkbowl.vault.economy.Economy
-
hasAccount
- Specified by:
hasAccount
in interfacenet.milkbowl.vault.economy.Economy
-
hasAccount
- Specified by:
hasAccount
in interfacenet.milkbowl.vault.economy.Economy
-
hasAccount
- Specified by:
hasAccount
in interfacenet.milkbowl.vault.economy.Economy
-
hasAccount
- Specified by:
hasAccount
in interfacenet.milkbowl.vault.economy.Economy
-
getBalance
- Specified by:
getBalance
in interfacenet.milkbowl.vault.economy.Economy
-
getBalance
- Specified by:
getBalance
in interfacenet.milkbowl.vault.economy.Economy
-
getBalance
- Specified by:
getBalance
in interfacenet.milkbowl.vault.economy.Economy
-
getBalance
- Specified by:
getBalance
in interfacenet.milkbowl.vault.economy.Economy
-
has
- Specified by:
has
in interfacenet.milkbowl.vault.economy.Economy
-
has
- Specified by:
has
in interfacenet.milkbowl.vault.economy.Economy
-
has
- Specified by:
has
in interfacenet.milkbowl.vault.economy.Economy
-
has
- Specified by:
has
in interfacenet.milkbowl.vault.economy.Economy
-
withdrawPlayer
- Specified by:
withdrawPlayer
in interfacenet.milkbowl.vault.economy.Economy
-
withdrawPlayer
public net.milkbowl.vault.economy.EconomyResponse withdrawPlayer(OfflinePlayer player, double amount) - Specified by:
withdrawPlayer
in interfacenet.milkbowl.vault.economy.Economy
-
withdrawPlayer
public net.milkbowl.vault.economy.EconomyResponse withdrawPlayer(String playerName, String worldName, double amount) - Specified by:
withdrawPlayer
in interfacenet.milkbowl.vault.economy.Economy
-
withdrawPlayer
public net.milkbowl.vault.economy.EconomyResponse withdrawPlayer(OfflinePlayer player, String worldName, double amount) - Specified by:
withdrawPlayer
in interfacenet.milkbowl.vault.economy.Economy
-
depositPlayer
- Specified by:
depositPlayer
in interfacenet.milkbowl.vault.economy.Economy
-
depositPlayer
public net.milkbowl.vault.economy.EconomyResponse depositPlayer(OfflinePlayer player, double amount) - Specified by:
depositPlayer
in interfacenet.milkbowl.vault.economy.Economy
-
depositPlayer
public net.milkbowl.vault.economy.EconomyResponse depositPlayer(String playerName, String worldName, double amount) - Specified by:
depositPlayer
in interfacenet.milkbowl.vault.economy.Economy
-
depositPlayer
public net.milkbowl.vault.economy.EconomyResponse depositPlayer(OfflinePlayer player, String worldName, double amount) - Specified by:
depositPlayer
in interfacenet.milkbowl.vault.economy.Economy
-
createPlayerAccount
- Specified by:
createPlayerAccount
in interfacenet.milkbowl.vault.economy.Economy
-
createPlayerAccount
- Specified by:
createPlayerAccount
in interfacenet.milkbowl.vault.economy.Economy
-
createPlayerAccount
- Specified by:
createPlayerAccount
in interfacenet.milkbowl.vault.economy.Economy
-
createPlayerAccount
- Specified by:
createPlayerAccount
in interfacenet.milkbowl.vault.economy.Economy
-
createBank
- Specified by:
createBank
in interfacenet.milkbowl.vault.economy.Economy
-
createBank
- Specified by:
createBank
in interfacenet.milkbowl.vault.economy.Economy
-
deleteBank
- Specified by:
deleteBank
in interfacenet.milkbowl.vault.economy.Economy
-
bankBalance
- Specified by:
bankBalance
in interfacenet.milkbowl.vault.economy.Economy
-
bankHas
- Specified by:
bankHas
in interfacenet.milkbowl.vault.economy.Economy
-
bankWithdraw
- Specified by:
bankWithdraw
in interfacenet.milkbowl.vault.economy.Economy
-
bankDeposit
- Specified by:
bankDeposit
in interfacenet.milkbowl.vault.economy.Economy
-
isBankOwner
- Specified by:
isBankOwner
in interfacenet.milkbowl.vault.economy.Economy
-
isBankOwner
- Specified by:
isBankOwner
in interfacenet.milkbowl.vault.economy.Economy
-
isBankMember
- Specified by:
isBankMember
in interfacenet.milkbowl.vault.economy.Economy
-
isBankMember
- Specified by:
isBankMember
in interfacenet.milkbowl.vault.economy.Economy
-
getBanks
- Specified by:
getBanks
in interfacenet.milkbowl.vault.economy.Economy
-