DiamondEconomy
一个轻量级、高度可配置的经济插件,将 Vault 银行系统与实体物品相结合。
功能
- 可配置的货币: 厌倦了钻石?可以通过
config.yml轻松切换为绿宝石、铁锭或紫水晶碎片。 - 自定义符号与格式: 更改货币符号(例如从
⬧改为$),并使用messages.yml完全自定义所有消息的颜色和翻译。 - Vault 集成: 挂钩至 Vault,与 Vault 插件无缝兼容。
- 实体经济: 存入物品到银行,从银行取出物品。自动处理背包空间(如果背包已满则掉落物品)。
- 管理员工具: 通过
/eco(give, take, set)和/balance [player]全面控制经济系统,并支持离线玩家查询。 - 隐私功能: 玩家可以切换自己在
/baltop排行榜上的可见性。 - SQLite 数据库: 使用本地 SQLite 数据库,提供高性能且防崩溃的数据存储。
- 小数余额: 支持精确到
0.01的支付,但玩家只能取出整数数量的物品。
依赖
- Vault - 此插件是 必需 的,DiamondEconomy 才能正常运行。
安装
- 确保你的服务器上已安装 Vault。
- 下载 DiamondEconomy 的最新发布版本。
- 将 JAR 文件放入服务器的
plugins文件夹中。 - 重启服务器。
配置与本地化
DiamondEconomy 会在插件文件夹中创建两个文件,以便轻松自定义:
config.yml
currency-item: 玩家存入/取出的物品材质(例如DIAMOND,EMERALD,AMETHYST_SHARD)。currency-symbol: 聊天中使用的符号(例如⬧,$,€)。
messages.yml
- 所有面向玩家显示的文本均可在此处编辑。
- 支持 Minecraft 颜色代码(例如
&a、&c)。 - 适用于将插件翻译为其他语言。
权限
| 权限 | 描述 | 默认值 |
|---|---|---|
diamondeconomy.use |
使用 /pay、/deposit、/withdraw。 |
true |
diamondeconomy.balance.others |
通过 /balance [player] 查看其他玩家的余额。 |
op |
diamondeconomy.toggle |
在 /baltop 中切换自身的可见性。 |
true |
diamondeconomy.admin |
使用 /eco、/diamondeconomy reload,以及查看离线玩家余额。 |
op |
命令
| 命令 | 别名 | 描述 |
|---|---|---|
/balance [player] |
/bal |
查看你自己的或另一位玩家的余额。 |
/deposit <amount|all> |
/dep |
从你的物品栏中存入货币物品。 |
/withdraw <amount|all> |
/with |
将货币物品取出到你的物品栏中。 |
/pay <player> <amount> |
none |
从你的余额中向另一位玩家付款。 |
/baltop [toggle] |
/balancetop |
查看最富有的玩家列表,或切换自身可见性。 |
/eco <give|take|set> <player> <amount> |
none |
修改玩家余额(管理员)。 |
/diamondeconomy reload |
/de |
重新加载配置和消息文件。 |
使用示例
存款
/deposit 5 # 存入 5 个货币物品
/dep all # 存入你物品栏中的所有货币物品
取款
/withdraw 64 # 取出 64 个物品(给予 1 组)
/with all # 尽可能多地取出完整数量的物品,受限于你的余额
支付
/pay Steve 50 # 向 Steve 支付 50.00 货币
/pay Alex 0.50 # 向 Alex 支付 50 分
**管理员管理**
```yaml
/eco give Steve 1000 # 给予 Steve 1000 货币
/eco take Alex 500 # 从 Alex 处扣除 500 货币
/eco set Herobrine 0 # 将 Herobrine 的余额设置为 0
/de reload # 重新加载配置/消息
DiamondEconomy
A lightweight, highly configurable economy plugin that bridges Vault banking with physical items.
Features
- Configurable Currency: Tired of Diamonds? Easily switch to Emeralds, Iron Ingots, or Amethyst Shards via
config.yml. - Custom Symbols & Formatting: Change the currency symbol (e.g., from
⬧to$) and fully customize all message colors/translations usingmessages.yml. - Vault Integration: Hooks into Vault for seamless compatibility with Vault plugins.
- Physical Economy: Deposit items to bank, withdraw items from bank. Automatically handles inventory space (drops items if full).
- Admin Tools: Full control over the economy with
/eco(give, take, set) and/balance [player]for offline support. - Privacy Features: Players can toggle their visibility on
/baltop. - SQLite Database: Uses a local SQLite database for high performance and crash-safe data storage.
- Fractional Balances: Supports precise payments down to
0.01, but players can only withdraw whole items.
Dependencies
- Vault - This plugin is required for DiamondEconomy to function.
Installation
- Make sure you have Vault installed on your server.
- Download the latest release of DiamondEconomy.
- Place the JAR file into your server's
pluginsfolder. - Restart your server.
Configuration & Localization
DiamondEconomy creates two files in the plugin folder for easy customization:
config.yml
currency-item: The material players deposit/withdraw (e.g.,DIAMOND,EMERALD,AMETHYST_SHARD).currency-symbol: The symbol used in chat (e.g.,⬧,$,€).
messages.yml
- All user-facing text can be edited here.
- Supports Minecraft color codes (e.g.,
&a,&c). - Useful for translating the plugin to other languages.
Permissions
| Permission | Description | Default |
|---|---|---|
diamondeconomy.use |
Use /pay, /deposit, /withdraw. |
true |
diamondeconomy.balance.others |
Check balances of other players via /balance [player]. |
op |
diamondeconomy.toggle |
Toggle own visibility in /baltop. |
true |
diamondeconomy.admin |
Use /eco, /diamondeconomy reload, and checks offline balances. |
op |
Commands
| Command | Alias(es) | Description |
|---|---|---|
/balance [player] |
/bal |
Check your balance or another player's. |
/deposit <amount|all> |
/dep |
Deposit currency items from your inventory. |
/withdraw <amount|all> |
/with |
Withdraw currency items into your inventory. |
/pay <player> <amount> |
none |
Pays another player from your balance. |
/baltop [toggle] |
/balancetop |
View the richest players, or toggle visibility. |
/eco <give|take|set> <player> <amount> |
none |
Modify player balances (Admin). |
/diamondeconomy reload |
/de |
Reload configuration and messages. |
Usage Examples
Depositing
/deposit 5 # Deposits 5 currency items
/dep all # Deposits all currency items in your inventory
Withdrawing
/withdraw 64 # Withdraws 64 items (gives 1 stack)
/with all # Withdraws as many whole items as your balance allows
Paying
/pay Steve 50 # Pays Steve 50.00 currency
/pay Alex 0.50 # Pays Alex 50 cents
Admin Management
/eco give Steve 1000 # Give Steve 1000 currency
/eco take Alex 500 # Take 500 currency from Alex
/eco set Herobrine 0 # Set Herobrine's balance to 0
/de reload # Reload config/messages
下载 Diamond Economy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Diamond Economy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Diamond Economy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Diamond Economy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Diamond Economy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Diamond Economy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Diamond Economy
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
终于修复了 Towny 的 bug,感谢 JamesAmericansky
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
使床在所有维度中爆炸的模组
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧