| Constructor and Description |
|---|
AbstractEconomy() |
| Modifier and Type | Method and Description |
|---|---|
EconomyResponse |
createBank(java.lang.String name,
org.bukkit.OfflinePlayer player)
Creates a bank account with the specified name and the player as the
owner
以指定名称创建一个银行账户并设置玩家为所有者
|
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.
|
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.
|
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.
|
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 |
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
检测玩家在指定世界是否有一个账号
因为所有主要的经济插件会在玩家加入服务器时自动生成一个玩家账户,这个方法在玩家至少加入服务器一次的情况下总是返回真
|
EconomyResponse |
isBankMember(java.lang.String name,
org.bukkit.OfflinePlayer player)
Check if the player is a member of the bank account
检查玩家是否是银行账户的成员
|
EconomyResponse |
isBankOwner(java.lang.String name,
org.bukkit.OfflinePlayer player)
Check if a player is the owner of a bank account
检查玩家是否为银行账户的所有者
|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbankBalance, bankDeposit, bankHas, bankWithdraw, createBank, createPlayerAccount, createPlayerAccount, currencyNamePlural, currencyNameSingular, deleteBank, depositPlayer, depositPlayer, format, fractionalDigits, getBalance, getBalance, getBanks, getName, has, has, hasAccount, hasAccount, hasBankSupport, isBankMember, isBankOwner, isEnabled, withdrawPlayer, withdrawPlayerpublic boolean hasAccount(org.bukkit.OfflinePlayer player)
EconomyhasAccount in interface Economyplayer - to check
检查的玩家public boolean hasAccount(org.bukkit.OfflinePlayer player,
java.lang.String worldName)
EconomyhasAccount in interface Economyplayer - to check in the world
在这个世界里需要检测的玩家worldName - world-specific account
世界的具体名称(对于某个世界特定的账户来说)public double getBalance(org.bukkit.OfflinePlayer player)
EconomygetBalance in interface Economyplayer - of the player
获取账户余额的玩家public double getBalance(org.bukkit.OfflinePlayer player,
java.lang.String world)
EconomygetBalance in interface Economyplayer - to check
要检查的玩家world - name of the world
世界的名称public boolean has(org.bukkit.OfflinePlayer player,
double amount)
Economypublic boolean has(org.bukkit.OfflinePlayer player,
java.lang.String worldName,
double amount)
Economypublic EconomyResponse withdrawPlayer(org.bukkit.OfflinePlayer player, double amount)
EconomywithdrawPlayer in interface Economyplayer - to withdraw from
要被提取金钱 的玩家amount - Amount to withdraw
要提取的金额public EconomyResponse withdrawPlayer(org.bukkit.OfflinePlayer player, java.lang.String worldName, double amount)
EconomywithdrawPlayer in interface Economyplayer - to withdraw from
要被提取金钱的倒霉玩家worldName - - name of the world
世界的名字amount - Amount to withdraw
要提取的数量public EconomyResponse depositPlayer(org.bukkit.OfflinePlayer player, double amount)
EconomydepositPlayer in interface Economyplayer - to deposit to
要被存入的玩家amount - Amount to deposit
存入金额public EconomyResponse depositPlayer(org.bukkit.OfflinePlayer player, java.lang.String worldName, double amount)
EconomydepositPlayer in interface Economyplayer - to deposit to
被存款人worldName - name of the world
世界名称amount - Amount to deposit
存入金额public EconomyResponse createBank(java.lang.String name, org.bukkit.OfflinePlayer player)
EconomycreateBank in interface Economyname - of account
账户名player - the account should be linked to
所有者(玩家)public EconomyResponse isBankOwner(java.lang.String name, org.bukkit.OfflinePlayer player)
EconomyisBankOwner in interface Economyname - of the account
账户名player - to check for ownership
要被检查的玩家public EconomyResponse isBankMember(java.lang.String name, org.bukkit.OfflinePlayer player)
EconomyisBankMember in interface Economyname - of the account
账户名player - to check membership
要被检查的玩家public boolean createPlayerAccount(org.bukkit.OfflinePlayer player)
EconomycreatePlayerAccount in interface Economyplayer - OfflinePlayer
玩家public boolean createPlayerAccount(org.bukkit.OfflinePlayer player,
java.lang.String worldName)
EconomycreatePlayerAccount in interface Economyplayer - OfflinePlayer
玩家worldName - String name of the world
世界名