Vault2.0 是什么?
Vault2.0 是一个经济插件,它注册了一个兼容 Vault API 的 Bukkit Economy 服务,允许其他插件(商店、权限组等)使用货币功能,而无需依赖原始的 Vault.jar。它包含菜单、支付/扣费流程、贷款系统,以及安全配置和消息重载功能。
━━━━━━━━━━重要提示━━━━━━━━━━
- 请勿将此插件与原始的 Vault.jar 同时运行(插件名相同)。请在启动前移除 Vault.jar
━━━━━━━━━━功能特性━━━━━━━━━━
- 内置持久化经济系统(文件存储;可选 MySQL)。
- /pay 命令支持 GUI 及每个玩家的子菜单(支付、收费、查看余额、贷款)。
- 贷款系统配有 GUI 向导(金额仅通过聊天输入指定)。
- 可配置贷款违约时的默认负面效果(如缓慢/疲劳等)。
- /vault 主菜单(支付 / 贷款 / 设置 / 重载 / 更新)。
- 安全重载:/vault reload 会更新 config.yml 和 messages_*.yml,但不会覆盖您的自定义值。
- 多语言支持:en, es, fr, de, nl, pt, ru, zh_TW, hi。
- GUI 历史记录
- 实体货币
- 离线支付队列
- 多货币支持
- 银行 + 利息 + 税收
- 氏族账户 / 团队金库(适用于 SMP 和 Factions 服务器)
- Discord Webhook - transactions.log 防重复记录
━━━━━━━━━━ 安装 ━━━━━━━━━━
将 .jar 文件复制到服务器的 plugins 文件夹中。启动服务器以生成配置文件。
- MySQL 兼容性:支持与 MySQL 集成,让用户更高效地管理和维护数据库。
━━━━━━━交互菜单━━━━━━━━
?子菜单:
1:?pay 向玩家发送金钱
2:?balance 显示玩家的金钱余额
3:?Charge 向目标玩家发送一条带有指定金额的互动消息(点击消息即可自动发送金钱,无需使用命令)。
4:?Bank 打开银行菜单(存款/取款、查看利息和税收)。
━━━━━━━━贷款系统━━━━━━━━
贷款系统有助于管理游戏内的财务状况。玩家可以申请贷款、管理还款并查看其财务状态。
申请贷款
要申请贷款,请使用 /loan 或 /prestamo 打开菜单并选择 Request。指定贷款金额,如果分期偿还,还需指定每期金额。
资金发放
确认后,资金将立即存入账户,贷款状态记录为“活跃”。
自动扣款
系统会自动尝试扣除分期款项。如果余额充足,将从余额中扣除。
查看状态
在菜单中,Status 选项会显示剩余欠款和下期还款日期。
手动还款
您可以使用 Pay 选项随时部分或全部偿还贷款。
债务
如果余额不足以进行自动扣款,贷款将进入债务状态。这可能会导致负面效果,直到债务清偿为止。
该系统简化了游戏内的财务管理,提供了控制性和动态性。
Spoiler
点击查看所有命令
| ?命令 |
描述 |
/balance | /bal | /dinero |
显示您当前的余额 |
/pay | /pagar |
向其他玩家发送金钱(GUI 或命令) |
/loan | /prestamo |
打开贷款菜单 GUI |
/vaultop |
显示拥有最多金钱的前几名玩家 |
/vault |
Vault 菜单 / 管理员命令 |
/vault [main menu] |
打开主 Vault 菜单 |
/vault reload |
重载配置 + 消息文件,并添加缺失的部分 |
/vault update |
检查更新 |
/vault resetbalances confirm |
清除所有余额(需确认) |
/vault loan request|pay|status |
贷款管理 |
/vault top [page] |
最富有的玩家排名 |
/vault withdraw <amount> |
提取实体纸币(HMAC 签名) |
/vault history |
打开交易历史 GUI |
/vault offlinepay list|refund |
管理待处理的离线支付 |
/vault bank |
打开银行系统 |
/vault bank menu|gui|open |
打开银行 GUI 菜单 |
/vault bank balance|bal |
显示您的银行余额 |
/vault bank deposit|dep <amount> |
向银行存入金钱 |
/vault bank withdraw|with|wd <amount> |
从银行取出金钱 |
/vault bank top [page] |
银行余额排行榜 |
/eco give|add <player> <amount> |
给玩家增加金钱 |
/eco take|remove <player> <amount> |
扣除玩家的金钱 |
/eco set <player> <amount> |
设置玩家的余额 |
/eco reset <player> |
将玩家的余额重置为 0 |
/eco top [page] |
最富有的玩家排名 |
点击查看所有权限
| ? 权限 |
描述 |
vault.balance |
/balance, /bal, /dinero |
vault.pay |
/pay 菜单及直接支付 |
vault.loan |
/loan, /prestamo 及贷款功能 |
vault.eco |
/eco give / take |
vault.top |
/vaultop (顶级玩家命令) |
vault.withdraw |
/vault withdraw (提取实体纸币) |
vault.history |
/vault history (交易 GUI) |
点击查看所有占位符
| ?占位符 |
描述 |
%vault_balance% |
当前玩家的原始余额。 |
%vault_balance_formatted% |
使用插件经济格式格式化后的当前玩家余额。 |
%vault_eco_balance% |
当前玩家的原始经济余额。 |
%vault_eco_balance_formatted% |
格式化后的当前玩家经济余额。 |
%vault_eco_balance_fixed% |
当前玩家保留恰好两位小数的余额。 |
%vault_eco_balance_commas% |
当前玩家带有千位分隔符的余额。 |
%vault_eco_balance_short% |
当前玩家的缩写余额,例如 1.2k 或 3.4m 。 |
%vault_currency_symbol% |
来自插件配置中的货币符号。 |
%vault_balance_<player>% |
指定玩家的原始余额。 |
%vault_balance_formatted_<player>% |
指定玩家的格式化余额。 |
%vault_ecobalance<0-8>dp% |
当前玩家自定义小数位数的余额。 |
%vault_top% |
排名前 10 的最富有玩家的多行列表。 |
%vault_top_<n>% |
排名 n 的完整条目。 |
%vault_top_name_<n>% |
排名 n 的玩家名称。 |
%vault_top_amount_<n>% |
排名 n 的格式化余额。 |
What is Vault2.0?
Vault2.0 is an economy plugin that registers a Bukkit Economy service compatible with the Vault API, allowing other plugins (shops, ranks, etc.) to use money without depending on the original Vault.jar. It includes menus, pay/charge flows, loans, and safe configuration and message reloads
━━━━━━━━━━IMPORTANT━━━━━━━━━━
- Do NOT run this plugin alongside the original Vault.jar (same plugin name). Remove Vault.jar before starting
━━━━━━━━━━Features━━━━━━━━━━
- Internal economy with persistence (file storage; optional MySQL).
- /pay with GUI and per-player submenu (pay, charge, view balance, loans).
- Loans with GUI wizard (amounts via chat only).
- Defaulted effects configurable (slowness/fatigue, etc.) when a loan defaults.
- /vault main menu (Pay / Loan / Settings / Reload / Update).
- Safe reload: /vault reload updates config.yml and messages_*.yml without overwriting your values.
- Multi-language: en, es, fr, de, nl, pt, ru, zh_TW, hi.
- GUI History
- Physical Money
- Offline Pay Queue
- Multi-currency support
- Bank + Interest + Tax
- Clan Accounts / Team Vault (SMP and Factions servers)
- Discord webhook - transactions.log anti-duplicate
━━━━━━━━━━ Installation ━━━━━━━━━━
Copy the .jar file to the plugins folder on your server. Start the server to generate the configuration.
- MySQL compatibility: compatibility with MySQL, allowing users to integrate and manage databases more efficiently.
━━━━━━━interactive menu━━━━━━━━
?Submenu:
1:?pay send money to a player
2:?balance shows the player's money
3:?Charge sends an interactive message to the player with the designated amount (clicking on the message automatically sends the money without using commands).
4:?Bank opens the bank menu (deposit/withdraw funds, view interest and tax).
━━━━━━━━Loan System━━━━━━━━
The loan system helps manage the game's finances. Players can apply for loans, manage payments, and view their financial status.
Request a Loan
To request a loan, open the menu with /loan or /prestamo and select Request. Specify the amount and, if there are installments, also the amount of each one.
Money Delivery
Upon confirmation, the money is instantly deposited, and the loan is recorded as "active."
Automatic Collection
The system attempts to collect installments automatically. If there's enough balance, it deducts from the balance.
View Status
In the menu, the Status option shows the outstanding balance and the next payment date.
Pay Manually
You can use the Pay option to pay part or all of the loan at any time.
debt
If there's not enough balance to collect, the loan goes into debt. This can cause negative effects until the debt is settled.
This system simplifies financial management in the game, offering control and dynamism.
Spoiler
Click to view all Commands
| ?Command |
Description |
/balance | /bal | /dinero |
Show your current balance |
/pay | /pagar |
Send money to another player (GUI or command) |
/loan | /prestamo |
Open the loan menu GUI |
/vaultop |
Show top players with the most money |
/vault |
Vault menu / admin command |
/vault [main menu] |
Open the main vault menu |
/vault reload |
Reload config + messages and add missing sections |
/vault update |
Check for updates |
/vault resetbalances confirm |
Wipe ALL balances (confirm required) |
/vault loan request|pay|status |
Loan management |
/vault top [page] |
Top richest players |
/vault withdraw <amount> |
Withdraw physical banknotes (HMAC signed) |
/vault history |
Open transaction history GUI |
/vault offlinepay list|refund |
Manage pending offline payments |
/vault bank |
Open bank system |
/vault bank menu|gui|open |
Open the bank GUI menu |
/vault bank balance|bal |
Show your bank balance |
/vault bank deposit|dep <amount> |
Deposit money into the bank |
/vault bank withdraw|with|wd <amount> |
Withdraw money from the bank |
/vault bank top [page] |
Top bank balance rankings |
/eco give|add <player> <amount> |
Add money to a player |
/eco take|remove <player> <amount> |
Take money from a player |
/eco set <player> <amount> |
Set a player's balance |
/eco reset <player> |
Reset a player's balance to 0 |
/eco top [page] |
Top richest players |
Click to view all Permissions
| ? Permissions |
Description |
vault.balance |
/balance, /bal, /dinero |
vault.pay |
/pay menu and direct payments |
vault.loan |
/loan, /prestamo and loan features |
vault.eco |
/eco give / take |
vault.top |
/vaultop (top players command) |
vault.withdraw |
/vault withdraw (physical banknotes) |
vault.history |
/vault history (transaction GUI) |
Click to view all Placeholders
| ?Placeholders |
Description |
%vault_balance% |
Current player's raw balance. |
%vault_balance_formatted% |
Current player's balance formatted with the plugin's economy format. |
%vault_eco_balance% |
Current player's raw economy balance. |
%vault_eco_balance_formatted% |
Current player's formatted economy balance. |
%vault_eco_balance_fixed% |
Current player's balance with exactly 2 decimal places. |
%vault_eco_balance_commas% |
Current player's balance with comma thousand separators. |
%vault_eco_balance_short% |
Current player's abbreviated balance, such as 1.2k or 3.4m . |
%vault_currency_symbol% |
Currency symbol from the plugin config. |
%vault_balance_<player>% |
Raw balance of the specified player. |
%vault_balance_formatted_<player>% |
Formatted balance of the specified player. |
%vault_ecobalance<0-8>dp% |
Current player's balance with a custom number of decimal places. |
%vault_top% |
Top 10 richest players as a multiline list. |
%vault_top_<n>% |
Full top entry for rank n . |
%vault_top_name_<n>% |
Player name at rank n . |
%vault_top_amount_<n>% |
Formatted balance at rank n . |
评论 0
登录后参与评分
还没有评论,来抢沙发吧