public interface Economy
| Modifier and Type | Method and Description |
|---|---|
EconomyResponse |
bankBalance(java.lang.String name)
Returns the amount the bank has
返回银行账户中的金额
|
EconomyResponse |
bankDeposit(java.lang.String name,
double amount)
Deposit an amount into a bank account - DO NOT USE NEGATIVE AMOUNTS
往银行中存入指定金额 - 不要使用负数
|
EconomyResponse |
bankHas(java.lang.String name,
double amount)
Returns true or false whether the bank has the amount specified - DO NOT
USE NEGATIVE AMOUNTS
返回账户是否有指定金额(有为true无则false) - 不要使用负数
|
EconomyResponse |
bankWithdraw(java.lang.String name,
double amount)
Withdraw an amount from a bank account - DO NOT USE NEGATIVE AMOUNTS
从银行账户中提取金额 - 不要使用负数
|
EconomyResponse |
createBank(java.lang.String name,
org.bukkit.OfflinePlayer player)
Creates a bank account with the specified name and the player as the
owner
以指定名称创建一个银行账户并设置玩家为所有者
|
EconomyResponse |
createBank(java.lang.String name,
java.lang.String player)
Deprecated.
As of VaultAPI 1.4 use {
createBank(String, OfflinePlayer) instead.
从 VaultAPI 1.4 开始使用 createBank(String, OfflinePlayer) 替代 |
boolean |
createPlayerAccount(org.bukkit.OfflinePlayer player)
Attempts to create a player account for the given player
尝试利用给定玩家创建一个玩家账户
|
boolean |
createPlayerAccount(org.bukkit.OfflinePlayer player,
java.lang.String worldName)
Attempts to create a player account for the given player on the specified
world IMPLEMENTATION SPECIFIC - if an economy plugin does not support
this the global balance will be returned.
|
boolean |
createPlayerAccount(java.lang.String playerName)
Deprecated.
As of VaultAPI 1.4 use {
createPlayerAccount(OfflinePlayer) instead.
从VaultAPI 1.4开始使用 createPlayerAccount(OfflinePlayer)替代 |
boolean |
createPlayerAccount(java.lang.String playerName,
java.lang.String worldName)
Deprecated.
As of VaultAPI 1.4 use {
createPlayerAccount(OfflinePlayer, String) instead.
从VaultAPI 1.4开始使用createPlayerAccount(OfflinePlayer, String)替代 |
java.lang.String |
currencyNamePlural()
Returns the name of the currency in plural form.
|
java.lang.String |
currencyNameSingular()
Returns the name of the currency in singular form.
|
EconomyResponse |
deleteBank(java.lang.String name)
Deletes a bank account with the specified name.
|
EconomyResponse |
depositPlayer(org.bukkit.OfflinePlayer player,
double amount)
Deposit an amount to a player - DO NOT USE NEGATIVE AMOUNTS
给一个玩家的账户存入金钱 - 不要使用负数
|
EconomyResponse |
depositPlayer(org.bukkit.OfflinePlayer player,
java.lang.String worldName,
double amount)
Deposit an amount to a player - DO NOT USE NEGATIVE AMOUNTS
IMPLEMENTATION SPECIFIC - if an economy plugin does not support this the
global balance will be returned.
|
EconomyResponse |
depositPlayer(java.lang.String playerName,
double amount)
Deprecated.
As of VaultAPI 1.4 use
depositPlayer(OfflinePlayer, double) instead.
从 VaultAPI 1.4 开始使用 depositPlayer(OfflinePlayer, double) 替代 |
EconomyResponse |
depositPlayer(java.lang.String playerName,
java.lang.String worldName,
double amount)
Deprecated.
As of VaultAPI 1.4 use
depositPlayer(OfflinePlayer, String, double)
instead.
从 VaultAPI 1.4 开始使用 depositPlayer(OfflinePlayer, String, double) 替代 |
java.lang.String |
format(double amount)
Format amount into a human readable String This provides translation into
economy specific formatting to improve consistency between plugins.
|
int |
fractionalDigits()
Some economy plugins round off after a certain number of digits.
|
double |
getBalance(org.bukkit.OfflinePlayer player)
Gets balance of a player
获得一个玩家的账户余额
|
double |
getBalance(org.bukkit.OfflinePlayer player,
java.lang.String world)
Gets balance of a player on the specified world.
|
double |
getBalance(java.lang.String playerName)
Deprecated.
As of VaultAPI 1.4 use
getBalance(OfflinePlayer)
instead.
从VaultAPI 1.4 开始使用 getBalance(OfflinePlayer)
方法作为代替。 |
double |
getBalance(java.lang.String playerName,
java.lang.String world)
Deprecated.
As of VaultAPI 1.4 use
getBalance(OfflinePlayer, String) instead.
从VaultAPI 1.4开始使用 getBalance(OfflinePlayer, String)
方法作为代替。 |
java.util.List<java.lang.String> |
getBanks()
Gets the list of banks
获取银行列表
|
java.lang.String |
getName()
Gets name of economy method
获取经济(economy)方法的名称
|
boolean |
has(org.bukkit.OfflinePlayer player,
double amount)
Checks if the player account has the amount - DO NOT USE NEGATIVE AMOUNTS
检测玩家账户里是否有这个数值的金钱 - 请勿使用复数的金钱数值
|
boolean |
has(org.bukkit.OfflinePlayer player,
java.lang.String worldName,
double amount)
Checks if the player account has the amount in a given world - DO NOT USE
NEGATIVE AMOUNTS IMPLEMENTATION SPECIFIC - if an economy plugin does not
support this the global balance will be returned.
|
boolean |
has(java.lang.String playerName,
double amount)
Deprecated.
As of VaultAPI 1.4 use
has(OfflinePlayer, double)
instead.
从VaultAPI 1.4 开始使用 has(OfflinePlayer, double)
方法代替。 |
boolean |
has(java.lang.String playerName,
java.lang.String worldName,
double amount)
Deprecated.
As of VaultAPI 1.4 use @{link
has(OfflinePlayer, String, double) instead.
开始VaultAPI 1.4开始使用 has(OfflinePlayer, String, double)
作为代替。 |
boolean |
hasAccount(org.bukkit.OfflinePlayer player)
Checks if this player has an account on the server yet This will always
return true if the player has joined the server at least once as all
major economy plugins auto-generate a player account when the player
joins the server
检测玩家是否在服务器上已经有一个账户
因为所有主要的经济插件会在玩家加入服务器时自动生成一个玩家账户,这个方法在玩家至少加入服务器一次的情况下总是返回真
|
boolean |
hasAccount(org.bukkit.OfflinePlayer player,
java.lang.String worldName)
Checks if this player has an account on the server yet on the given world
This will always return true if the player has joined the server at least
once as all major economy plugins auto-generate a player account when the
player joins the server
检测玩家在指定世界是否有一个账号
因为所有主要的经济插件会在玩家加入服务器时自动生成一个玩家账户,这个方法在玩家至少加入服务器一次的情况下总是返回真
|
boolean |
hasAccount(java.lang.String playerName)
Deprecated.
As of VaultAPI 1.4 use
hasAccount(OfflinePlayer)
instead.
从VaultAPI 1.4开始使用 hasAccount(OfflinePlayer)
方法作为代替。 |
boolean |
hasAccount(java.lang.String playerName,
java.lang.String worldName)
Deprecated.
As of VaultAPI 1.4 use
hasAccount(OfflinePlayer, String) instead.
从VaultAPI 1.4开始使用 hasAccount(OfflinePlayer, String)
方法作为代替。 |
boolean |
hasBankSupport()
Returns true if the given implementation supports banks.
|
EconomyResponse |
isBankMember(java.lang.String name,
org.bukkit.OfflinePlayer player)
Check if the player is a member of the bank account
检查玩家是否是银行账户的成员
|
EconomyResponse |
isBankMember(java.lang.String name,
java.lang.String playerName)
Deprecated.
As of VaultAPI 1.4 use {
isBankMember(String, OfflinePlayer) instead.
从VaultAPI 1.4开始使用 isBankMember(String, OfflinePlayer) 替代 |
EconomyResponse |
isBankOwner(java.lang.String name,
org.bukkit.OfflinePlayer player)
Check if a player is the owner of a bank account
检查玩家是否为银行账户的所有者
|
EconomyResponse |
isBankOwner(java.lang.String name,
java.lang.String playerName)
Deprecated.
As of VaultAPI 1.4 use {
isBankOwner(String, OfflinePlayer) instead.
从VaultAPI 1.4开始使用isBankOwner(String, OfflinePlayer)代替 |
boolean |
isEnabled()
Checks if economy method is enabled.
|
EconomyResponse |
withdrawPlayer(org.bukkit.OfflinePlayer player,
double amount)
Withdraw an amount from a player - DO NOT USE NEGATIVE AMOUNTS
从玩家账户中提取指定金额 - 不要使用负数= =
|
EconomyResponse |
withdrawPlayer(org.bukkit.OfflinePlayer player,
java.lang.String worldName,
double amount)
Withdraw an amount from a player on a given world - DO NOT USE NEGATIVE
AMOUNTS IMPLEMENTATION SPECIFIC - if an economy plugin does not support
this the global balance will be returned.
|
EconomyResponse |
withdrawPlayer(java.lang.String playerName,
double amount)
Deprecated.
As of VaultAPI 1.4 use
withdrawPlayer(OfflinePlayer, double) instead.
从 VaultAPI 1.4 开始使用 withdrawPlayer(OfflinePlayer, double) 替代 |
EconomyResponse |
withdrawPlayer(java.lang.String playerName,
java.lang.String worldName,
double amount)
Deprecated.
As of VaultAPI 1.4 use
withdrawPlayer(OfflinePlayer, String, double)
instead.
从 VaultAPI 1.4 开始使用 withdrawPlayer(OfflinePlayer, String, double) 替代 |
boolean isEnabled()
java.lang.String getName()
boolean hasBankSupport()
int fractionalDigits()
java.lang.String format(double amount)
amount - to format
要转换格式的数值java.lang.String currencyNamePlural()
java.lang.String currencyNameSingular()
@Deprecated boolean hasAccount(java.lang.String playerName)
hasAccount(OfflinePlayer)
instead.
从VaultAPI 1.4开始使用 hasAccount(OfflinePlayer)
方法作为代替。boolean hasAccount(org.bukkit.OfflinePlayer player)
player - to check
检查的玩家@Deprecated
boolean hasAccount(java.lang.String playerName,
java.lang.String worldName)
hasAccount(OfflinePlayer, String) instead.
从VaultAPI 1.4开始使用 hasAccount(OfflinePlayer, String)
方法作为代替。boolean hasAccount(org.bukkit.OfflinePlayer player,
java.lang.String worldName)
player - to check in the world
在这个世界里需要检测的玩家worldName - world-specific account
世界的具体名称(对于某个世界特定的账户来说)@Deprecated double getBalance(java.lang.String playerName)
getBalance(OfflinePlayer)
instead.
从VaultAPI 1.4 开始使用 getBalance(OfflinePlayer)
方法作为代替。double getBalance(org.bukkit.OfflinePlayer player)
player - of the player
获取账户余额的玩家@Deprecated
double getBalance(java.lang.String playerName,
java.lang.String world)
getBalance(OfflinePlayer, String) instead.
从VaultAPI 1.4开始使用 getBalance(OfflinePlayer, String)
方法作为代替。double getBalance(org.bukkit.OfflinePlayer player,
java.lang.String world)
player - to check
要检查的玩家world - name of the world
世界的名称@Deprecated
boolean has(java.lang.String playerName,
double amount)
has(OfflinePlayer, double)
instead.
从VaultAPI 1.4 开始使用 has(OfflinePlayer, double)
方法代替。boolean has(org.bukkit.OfflinePlayer player,
double amount)
player - to check 检测的玩家amount - to check for 检测的金额@Deprecated
boolean has(java.lang.String playerName,
java.lang.String worldName,
double amount)
has(OfflinePlayer, String, double) instead.
开始VaultAPI 1.4开始使用 has(OfflinePlayer, String, double)
作为代替。boolean has(org.bukkit.OfflinePlayer player,
java.lang.String worldName,
double amount)
player - to check
要检查的玩家worldName - to check with
检测的账户所在的世界名称amount - to check for
检测的金额@Deprecated EconomyResponse withdrawPlayer(java.lang.String playerName, double amount)
withdrawPlayer(OfflinePlayer, double) instead.
从 VaultAPI 1.4 开始使用 withdrawPlayer(OfflinePlayer, double) 替代EconomyResponse withdrawPlayer(org.bukkit.OfflinePlayer player, double amount)
player - to withdraw from
要被提取金钱 的玩家amount - Amount to withdraw
要提取的金额@Deprecated EconomyResponse withdrawPlayer(java.lang.String playerName, java.lang.String worldName, double amount)
withdrawPlayer(OfflinePlayer, String, double)
instead.
从 VaultAPI 1.4 开始使用 withdrawPlayer(OfflinePlayer, String, double) 替代EconomyResponse withdrawPlayer(org.bukkit.OfflinePlayer player, java.lang.String worldName, double amount)
player - to withdraw from
要被提取金钱的倒霉玩家worldName - - name of the world
世界的名字amount - Amount to withdraw
要提取的数量@Deprecated EconomyResponse depositPlayer(java.lang.String playerName, double amount)
depositPlayer(OfflinePlayer, double) instead.
从 VaultAPI 1.4 开始使用 depositPlayer(OfflinePlayer, double) 替代EconomyResponse depositPlayer(org.bukkit.OfflinePlayer player, double amount)
player - to deposit to
要被存入的玩家amount - Amount to deposit
存入金额@Deprecated EconomyResponse depositPlayer(java.lang.String playerName, java.lang.String worldName, double amount)
depositPlayer(OfflinePlayer, String, double)
instead.
从 VaultAPI 1.4 开始使用 depositPlayer(OfflinePlayer, String, double) 替代EconomyResponse depositPlayer(org.bukkit.OfflinePlayer player, java.lang.String worldName, double amount)
player - to deposit to
被存款人worldName - name of the world
世界名称amount - Amount to deposit
存入金额@Deprecated EconomyResponse createBank(java.lang.String name, java.lang.String player)
createBank(String, OfflinePlayer) instead.
从 VaultAPI 1.4 开始使用 createBank(String, OfflinePlayer) 替代EconomyResponse createBank(java.lang.String name, org.bukkit.OfflinePlayer player)
name - of account
账户名player - the account should be linked to
所有者(玩家)EconomyResponse deleteBank(java.lang.String name)
name - of the back to delete
要删除的账户名EconomyResponse bankBalance(java.lang.String name)
name - of the account
账户金额EconomyResponse bankHas(java.lang.String name, double amount)
name - of the account
账户名amount - to check for
金额EconomyResponse bankWithdraw(java.lang.String name, double amount)
name - of the account
账户名amount - to withdraw
提前金额EconomyResponse bankDeposit(java.lang.String name, double amount)
name - of the account
账户名amount - to deposit
存入金额@Deprecated EconomyResponse isBankOwner(java.lang.String name, java.lang.String playerName)
isBankOwner(String, OfflinePlayer) instead.
从VaultAPI 1.4开始使用isBankOwner(String, OfflinePlayer)代替EconomyResponse isBankOwner(java.lang.String name, org.bukkit.OfflinePlayer player)
name - of the account
账户名player - to check for ownership
要被检查的玩家@Deprecated EconomyResponse isBankMember(java.lang.String name, java.lang.String playerName)
isBankMember(String, OfflinePlayer) instead.
从VaultAPI 1.4开始使用 isBankMember(String, OfflinePlayer) 替代EconomyResponse isBankMember(java.lang.String name, org.bukkit.OfflinePlayer player)
name - of the account
账户名player - to check membership
要被检查的玩家java.util.List<java.lang.String> getBanks()
@Deprecated boolean createPlayerAccount(java.lang.String playerName)
createPlayerAccount(OfflinePlayer) instead.
从VaultAPI 1.4开始使用 createPlayerAccount(OfflinePlayer)替代boolean createPlayerAccount(org.bukkit.OfflinePlayer player)
player - OfflinePlayer
玩家@Deprecated
boolean createPlayerAccount(java.lang.String playerName,
java.lang.String worldName)
createPlayerAccount(OfflinePlayer, String) instead.
从VaultAPI 1.4开始使用createPlayerAccount(OfflinePlayer, String)替代boolean createPlayerAccount(org.bukkit.OfflinePlayer player,
java.lang.String worldName)
player - OfflinePlayer
玩家worldName - String name of the world
世界名