EmeraldBank

使用绿宝石的经济插件。

资源图片
# EmeraldBank - 一个简单的翡翠经济插件 一个简单轻量级的经济插件,使用翡翠。 所有信息和配置都可以在 `config.yml` 中自定义。 ## 依赖项 - [Paper](https://papermc.io/) - [Vault](https://github.com/MilkBowl/Vault/releases) ### 可选依赖项 - [OpenInv](https://github.com/Jikoo/OpenInv/releases) ## MC 版本策略 EmeraldBank 基本支持 Minecraft 的最新版本。 但是,我们会支持之前的版本一段时间。 我们将不支持 PaperMC 不再支持的版本。 下表显示了每个版本的支持状态。 | 版本 | 支持 | |-----------------|--------------------------------| | 1.21.8 | ✅ 正在支持 | | 1.21.6 ~ 1.21.7 | ✅ 正在支持 | | 1.21 ~ 1.21.5 | 🔁 可能有效,但不提供支持 | | < 1.20.X | 🚧 不再支持 | ## 指令 - `/bank` 别名 `/emeraldbank bank` - `/balance` 别名 `/emeraldbank balance` - `/pay` 别名 `/emeraldbank pay` - `/wallet` 别名 `/emeraldbank wallet` - `/em` 别名 `/emeraldbank` - `/embank` 别名 `/emeraldbank` - `/emeraldbank balance` 显示你拥有的翡翠数量余额。 - `/emeraldbank balance ` 显示其他玩家的余额。 - `/emeraldbank leaderboard` 显示排行榜中的所有玩家余额。 - `/emeraldbank pay ` 向其他玩家支付翡翠。 - `/emeraldbank reload` 重新加载配置和消息 - `/emeraldbank wallet add ` 将翡翠添加到你的钱包。 - `/emeraldbank wallet add all` 将所有翡翠添加到你的钱包。 - `/emeraldbank wallet withdraw ` 从你的钱包中提取翡翠。 - `/emeraldbank wallet balance` 显示你的钱包余额。 - `/emeraldbank bank account create ` 创建一个新的银行账户。 - `/emeraldbank bank account delete ` 关闭指定的银行账户。 - `/emeraldbank bank account add ` 添加可以访问银行账户的成员。 - `/emeraldbank bank account remove ` 从银行账户中移除成员。 - `/emeraldbank bank account addowner ` 添加可以管理银行账户的所有者。 - `/emeraldbank bank account removeowner ` 从银行账户中移除所有者。 - `/emeraldbank bank account list` 显示所有银行账户。 - `/emeraldbank bank account list ` 显示银行的所有成员。 - `/emeraldbank bank balance ` 显示银行余额。 - `/emeraldbank bank deposit ` 存入银行账户。 - `/emeraldbank bank withdraw ` 从银行账户中提取。 - `/emeraldbank bank send ` 转移到另一个银行账户的翡翠。 - `/emeraldbank bank pay ` 向指定的玩家支付翡翠。 ## 权限 - `emeraldbank.admin` - `emeraldbank.balance.all` - `emeraldbank.reload` - `emeraldbank.currency.rate.set` - `emeraldbank.bypass` - `emeraldbank.bypass.cost` - `emeraldbank.bypass.deposit` - `emeraldbank.bypass.member` - `emeraldbank.bypass.owner` - `emeraldbank.default` - `emeraldbank.balance` - `emeraldbank.pay` - `emeraldbank.leaderboard` - `emeraldbank.banking` - `emeraldbank.banking` - `emeraldbank.banking.balance` - `emeraldbank.banking.deposit` - `emeraldbank.banking.withdraw` - `emeraldbank.banking.send` - `emeraldbank.banking.pay` - `emeraldbank.banking.account` - `emeraldbank.banking.account` - `emeraldbank.banking.account.create` - `emeraldbank.banking.account.delete` - `emeraldbank.banking.account.add` - `emeraldbank.banking.account.remove` - `emeraldbank.banking.account.list` - `emeraldbank.banking.account.transfer` - `emeraldbank.currency` - `emeraldbank.currency.rate` - `emeraldbank.currency.exchange` - `emeraldbank.currency.exchange.` - `emeraldbank.currency.exchange.*` - `emeraldbank.currency.rate` - `emeraldbank.currency.rate.get` ## 占位符 - `%emeraldbank_balance%` - `%emeraldbank_balance_%` - `%emeraldbank_wallet%` - `%emeraldbank_wallet_%` - `%emeraldbank_bank_balance_%` - `%emeraldbank_bank_owner_%` - `%emeraldbank_bank_members_%` - `%emeraldbank_bank_list%` ## 配置 ```yaml # ______ _ _ ____ _ # | ____| | | | | _ \ | | # | |__ _ __ ___ ___ _ __ __ _| | __| | |_) | __ _ _ __ | | __ # | __| | '_ ` _ \ / _ | '__/ _` | |/ _` | _ < / _` | '_ \| |/ / # | |____| | | | | | __| | | (_| | | (_| | |_) | (_| | | | | < # |______|_| |_| |_|\___|_| \__,_|_|\__,_|____/ \__,_|_| |_|_|\_\ # # # 请勿更改此值! config_version: 1 # 付费玩家所需的费用。 pay-cost: disabled ################################################################# ## # ## 银行 # ## # ################################################################# banking: # 启用或禁用银行。 enabled: true tax: # 创建银行的费用。 create-cost: disabled # 创建银行的费用。 add-member-cost: disabled # 从银行移除成员的费用。 transfer-bank-cost: disabled # 从银行向另一个银行转账的费用。 deposit-cost: disabled # 从银行提取的费用。 withdraw-cost: disabled # 从银行向玩家支付的费用。 pay-cost: disabled # 支付的默认目的地。 # INVENTORY: 玩家的物品栏。 # WALLET: 玩家的钱包。 default-destination: INVENTORY # 加载离线玩家的物品栏。 # 此设置需要 OpenInv (https://github.com/Jikoo/OpenInv)。 # 此设置的更改将需要服务器重启。 load-offline-players-inventories: false # 启用或禁用交换功能。 # 警告:此设置是实验性功能。 # 此设置可能会在未来更改。 exchange-enabled: false ################################################################# ## # ## 货币 # ## # ################################################################# # 插件中使用的货币。 # 警告:更改此设置是实验性功能。 # 此设置可能会在未来更改。 # 除非您了解自己在做什么,否则您不应更改此设置。 currencies: emerald: # 货币的名称。 name: Emerald # 货币的复数名称。 name-plural: Emeralds # 将此货币设置为默认货币。 default-currency: true # 货币的汇率。 rate: 1.0 # 货币的物品类型。 item-type: emerald # 货币的子物品类型和汇率。 children: emerald_block: 9 # 交换的费用。 cost: disabled ################################################################# ## # ## 数据库 # ## # ################################################################# database: # 要使用的数据库类型。 # 更改数据库类型将需要服务器重启。 # H2: H2 数据库 # MYSQL: MySQL 数据库 type: H2 # 数据库的主机。 host: localhost # 数据库的端口。 port: 3306 # 数据库的名称。 database: emeraldbank # 数据库的用户名称。 username: root # 数据库的密码。 password: password ################################################################# ## # ## 消息 # ## # ################################################################# messages: name: EmeraldBank reload: 重新加载了配置和消息 economy-format: balance: '''s Balance: (Wallet: )' balance-bank: '''s Balance: ' leaderboard: ': ' rate-value: 'rate: ' rate-value-of-currency: 'Rate of : ' set-rate: Set rate of to exchange-rate: 'Exchange rate: 1 = ' exchange-cost: 'Exchange cost: ' exchange-receive: 'Estimated exchange amount: ' exchange-start: Exchanging to pay-success: Successfully paid to error-pay: Failed to pay to error-pay-self: You cannot pay yourself! banking-create: Created bank banking-delete: Deleted bank banking-deposit: Deposited to banking-withdraw: Withdrew from banking-add-member: Added to bank banking-remove-member: Removed from bank banking-list: 'Banks: ' banking-members: 'Members of : ' banking-add-owner: Added as owner of bank ! banking-remove-owner: Removed as owner of bank ! banking-send: Sent from to banking-pay: Paid from bank to offline-transaction: has been moved to your balance while you were offline! wallet: '''s Wallet: ' add-wallet: Added to 's wallet! withdraw-wallet: Withdrew from 's wallet! received: Received from receive-bank: Received to bank from error-banking-disabled: Banking is disabled! error-banking-create: Failed to create bank ! error-banking-delete: Failed to delete bank ! error-banking-exists: Bank already exists! error-banking-no-bank: Bank does not exist! error-banking-deposit: Failed to deposit to error-banking-withdraw: Failed to withdraw from error-banking-not-owner: is not the owner of bank ! error-banking-not-member: is not a member of bank ! error-banking-member-exists: is already a member of bank ! error-banking-add-member: Failed to add to bank ! error-banking-remove-member: Failed to remove from bank ! error-banking-delete-remaining: Bank has a remaining balance of ! error-banking-send: Failed to send from bank to bank ! error-banking-pay: Failed to pay from bank to ! error-banking-remove-owner: is the owner of bank ! error-banking-create-cost: Failed to create bank due to insufficient funds ! error-banking-add-member-cost: Failed to add member to bank due to insufficient funds ! error-banking-transfer-cost: Failed to transfer bank to due to insufficient funds ! error-banking-deposit-cost: Failed to deposit to bank due to insufficient funds ! error-banking-withdraw-cost: Failed to withdraw from bank due to insufficient funds ! error-banking-pay-cost: Failed to pay from bank to due to insufficient funds ! error-pay-cost: Failed to pay to due to insufficient funds ! error-add-wallet: Failed to add to 's wallet! error-withdraw-wallet: Failed to withdraw from 's wallet! error-reload: Failed to reload configuration and messages! error-banking-remove-last-owner: Failed to remove as owner of bank ! error-banking-remove-last-member: Failed to remove as member of bank ! error-player-not-found: Player not found! error-same-currency: You cannot exchange the same currency ! error-currency-not-found: Currency not found! error-not-enough-currency: You do not have of to pay! error-no-permission: You do not have permission to do this! error-exchange-too-low: Exchange amount is too low! ```