VEconomy 配置
一个与 Vault 兼容且完全可自定义的经济插件!
预览
金钱排行榜

交易记录



经济管理 (Moneyadmin)

配置概览
1. 数据库
定义数据库类型和连接详情。该插件支持:
- MongoDB: 指定连接字符串和数据库名称。
- SQL: 提供 JDBC 连接字符串。(SQLite 不需要用户名/密码。)
2. 自定义消息
自定义服务器启动、玩家加入/离开以及 Discord 聊天的消息,使用 MiniMessage 格式。
目前支持:de 和 en
3. 命令
/money - 显示你的余额
/money top - 显示前 10 名金钱排行。
/money pay (玩家) (金额) - 向其他玩家转账金钱。
/moneyadmin add (玩家) (金额) - 给予玩家金钱余额。
/moneyadmin remove (玩家) (金额) - 扣除玩家的金钱余额。
/moneyadmin set (玩家) (金额) - 将余额设置为指定金额。
/moneyadmin reset (玩家) - 重置玩家的金钱余额(归零)。
/moneyadmin transactions (玩家) - 显示玩家的交易记录
4. 权限
vbank.moneyadmin | 可在 Config.yml 中完全配置。
- 使用
/moneyadmin命令的权限。
安装说明
- 下载并安装插件到你的 Minecraft 服务器。
- 使用你喜欢的设置配置
config.yml文件:- 设置数据库类型和连接详情。
- 使用 MiniMessage 定义自定义消息。
- 重启服务器以应用更改。
示例配置
language: en
start_balance: 1000
示例消息配置
# 使用 Minimessage https://docs.advntr.dev/minimessage/format.html
# 通用消息
currency_name: "coins"
currency_name_plural: "coins"
currency_name_singular: "coin"
prefix: "<bold><dark_gray>[<gradient:#FAF162:#D91A0D>VEconomy</gradient><dark_gray>]<reset><gray> "
user_not_found: "<prefix><red>This user doesnt exist"
no_valid_number: "<prefix><red>Enter a valid number"
no_permission: "<prefix><red>You don't have Permission to do this!"
date_format: "MM/dd/yyyy - hh:mm a"
add: "<green>Add"
remove: "<red>Remove"
pay: "<red>Pay"
pay_receive: "<red>Pay receive"
admin_add: "<green>Add <dark_gray>(<red>Admin<dark_gray>)"
admin_remove: "<green>Remove <dark_gray>(<red>Admin<dark_gray>)"
admin_set: "<green>Set <dark_gray>(<red>Admin<dark_gray>)"
admin_reset: "<green>Reset <dark_gray>(<red>Admin<dark_gray>)"
command_money_own_balance: "<prefix>You have <yellow><balance> <currency_name>"
command_money_pay_self: "<prefix><red>You cannot send money to yourself"
command_money_pay_not_enough_money: "<prefix><red>You don't have enough money"
command_money_pay_success: "<prefix>You have sent <green><receiver> <yellow><amount> <currency_name><gray> to the player"
command_money_pay_success_receiver: "<prefix>The player <green><sender><gray> has sent you <yellow><amount> <currency_name><gray>"
command_moneyadmin_reset_success: "<prefix>The money of <yellow><username> <gray>has been reset"
command_moneyadmin_add_success: "<prefix>The player was given<yellow> <balance> <currency_name>"
command_moneyadmin_set_success: "<prefix>The player was set to<yellow> <balance> <currency_name>"
command_moneyadmin_remove_not_enough_money: "<prefix><red>You cannot bet the money negatively"
command_moneyadmin_remove_success: "<prefix><red>You have removed <yellow><balance> <currency_name> <gray>from the player"
top_item_name: "<green><count><gray># <yellow><username> <dark_gray>(<yellow><balance> <currency_name><dark_gray>)"
# 头颅
transaction_item_add_skull: "https://textures.minecraft.net/texture/5ff31431d64587ff6ef98c0675810681f8c13bf96f51d9cb07ed7852b2ffd1"
transaction_item_remove_skull: "https://textures.minecraft.net/texture/4e4b8b8d2362c864e062301487d94d3272a6b570afbf80c2c5b148c954579d46"
back_skull: "https://textures.minecraft.net/texture/bd8a99db2c37ec71d7199cd52639981a7513ce9cca9626a3936f965b131193"
next_skull: "https://textures.minecraft.net/texture/3edd20be93520949e6ce789dc4f43efaeb28c717ee6bfcbbe02780142f716"
admin_reset_skull: "https://textures.minecraft.net/texture/e9cdb9af38cf41daa53bc8cda7665c509632d14e678f0f19f263f46e541d8a30"
# 界面
界面:
顶部:
标题: "<前缀> 金钱排行榜前10"
物品:
占位符:
1: "灰色染色玻璃板"
2: "白色染色玻璃板"
交易记录:
标题: "<前缀> 交易记录"
物品:
占位符:
1:
材质: "灰色染色玻璃板"
交易项:
名称: "<红色>交易 <暗灰色>| <黄色><日期>"
描述:
- ""
- "<dark_gray>| <gray>数量 <dark_gray>» <yellow><amount>"
- "<dark_gray>| <gray>余额 <dark_gray>» <yellow><balance>"
- "<dark_gray>| <gray>类型 <dark_gray>» <yellow><type>"
BackItem:
Name: "<red>返回"
Lore:
- ""
- "<dark_gray>| <gray>点击此处返回上一页"
NextItem:
Name: "<green>下一页"
Lore:
- ""
- "<dark_gray>| <gray>点击此处前往下一页"
# 命令
命令:
Money:
名称: "money"
参数:
Top: "top"
Pay: "pay"
MoneyAdmin:
名称: "moneyadmin"
权限: "veconomy.moneyadmin"
参数:
Add: "add"
Remove: "remove"
Set: "set"
Reset: "reset"
Transactions: "transactions"
用法:
- "<prefix>MoneyAdmin help<dark_gray>:"
- "<prefix>使用 <yellow>/moneyadmin add <dark_gray><<yellow>玩家<dark_gray>> <<yellow>金额<dark_gray>>"
- "<prefix>使用 <yellow>/moneyadmin remove <dark_gray><<yellow>玩家<dark_gray>> <<yellow>金额<dark_gray>>"
- "<prefix>使用 <yellow>/moneyadmin set <dark_gray><<yellow>玩家<dark_gray>> <<yellow>金额<dark_gray>>"
- "<prefix>使用 <yellow>/moneyadmin reset <dark_gray><<yellow>玩家<dark_gray>>"
- "<prefix>使用 <yellow>/moneyadmin transactions <dark_gray><<yellow>玩家<dark_gray>>"
---
## 示例数据库配置
```yaml
type: Sqlite # 可用类型:mongo, mysql, sqlite
# MONGO
Mongo:
connection-string: "mongodb://<username>:<password>@<host>:<port>/"
database: "db"
# SQL
SQL:
connection-string: "jdbc:sqlite:plugins/VEconomy/database.db"
username: "username" # SQLite 不需要此项
password: "password" # SQLite 不需要此项
依赖项
注意事项
- MiniMessage 格式在消息的样式和排版方面具有极高的灵活性。更多详细信息请参阅 MiniMessage 文档。
- SQLite 是最简单的数据库选项,因为它不需要额外的设置。
你是这个资源的作者?登录后可认领此资源。
相似资源
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
ExyliaPlugins 的库。
通过对话框或铁砧界面帮助你的 Anthme
自定义你的Minecraft头像!
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧