ChorusTrade
适用于 Paper 26.2 的安全、完全可自定义的玩家间交易功能。
ChorusTrade 为你的玩家提供了一个简洁的交易 GUI,双方可以实时查看彼此的报价,添加物品和货币,并通过简短的安全倒计时进行确认。所有内容均可编辑:消息、菜单项、槽位、音效、颜色。它自带紫色主题并支持完整的十六进制颜色代码。
功能特性
- 双向交易 GUI:左侧显示你的报价,右侧显示对方玩家的报价
- 通过 Vault(任何经济插件)进行交易,可选配置税费及最小/最大金额限制
- 点击聊天中的请求按钮
[ACCEPT] / [DENY],或按住 Shift + 右键点击玩家发起请求
- 双方接受后进入安全倒计时;任何更改都会重置确认状态
- 防刷机制:最终交换会与快照进行验证比对,阻止在报价区域外进行点击和拖拽操作,禁用双击拾取功能
- 库存空间检查,防止因背包已满导致物品丢失(或者按你的偏好将其掉落)
- 取消、断开连接、死亡或服务器关闭时,物品始终归还给原主
- 支持按材质或名称设置物品黑名单
- 可切换是否开启请求功能,以及请求冷却时间、过期时间、距离和世界限制
- 交易历史记录日志 (
history.log)
- 管理工具命令:
/trade force、/trade reload
- 完美兼容自定义物品(名称、描述、附魔、自定义数据均会被保留)
完全可自定义
messages.yml:所有消息及其占位符
gui.yml:标题、材质、名称、描述、发光效果及按钮槽位
config.yml:各项限制、税费、黑名单、音效和行为设置
颜色
所有文本均支持传统代码和十六进制颜色。以下格式均可使用:
	D4EDD #9D4EDD <#9D4EDD> {#9D4EDD} &l &o &7
默认主题为紫色。
命令
| 命令 |
描述 |
/trade <player> |
发送交易请求 |
/trade accept [player] |
接受请求 |
/trade deny [player] |
拒绝请求 |
/trade cancel |
取消你发出的请求 |
/trade toggle |
启用或禁用接收到的请求 |
/trade reload |
重载配置文件(管理员) |
/trade force <player> [player] |
强制执行交易(管理员) |
别名:/ct、/chorustrade、/scambio
权限
| 权限节点 |
默认值 |
描述 |
chorustrade.use |
所有人 |
使用 /trade 命令 |
chorustrade.toggle |
所有人 |
使用 /trade toggle 命令 |
chorustrade.admin |
op |
重载配置并强制交易 |
chorustrade.bypass.toggle |
op |
向已禁用请求的玩家发送请求 |
chorustrade.bypass.cooldown |
op |
无视请求冷却时间 |
chorustrade.bypass.distance |
op |
无视距离和世界限制 |
chorustrade.bypass.blacklist |
op |
交易黑名单内的物品 |
依赖要求
- Paper 26.2
- Java 25
- Vault 及一个经济插件(可选,仅用于货币交易)
安装步骤
- 将
ChorusTrade.jar 放入你的 plugins 文件夹
- 重启服务器
- 编辑
plugins/ChorusTrade/ 目录下的文件,并运行 /trade reload
由 Controll3r24 制作。
ChorusTrade
Secure, fully customizable player-to-player trading for Paper 26.2.
ChorusTrade gives your players a clean trade GUI where both sides can see each other's offer in real time, add items and money, and confirm with a short safety countdown. Everything is editable: messages, menu items, slots, sounds, colors. It ships with a purple theme and full hex color support.
Features
- Two-sided trade GUI: your offer on the left, the other player's offer on the right
- Money trades through Vault (any economy plugin), with optional tax and min/max limits
- Clickable chat requests with
[ACCEPT] / [DENY] buttons, plus Shift + Right-click on a player
- Safety countdown after both players accept; any change resets the confirmation
- Dupe protection: the final exchange is verified against a snapshot, clicks and drags outside the offer area are blocked, double-click collecting is disabled
- Inventory space check so nobody loses items to a full inventory (or drop them if you prefer)
- Items always return to their owners on cancel, disconnect, death or server shutdown
- Item blacklist by material or by name
- Toggle to turn requests off, request cooldown, expiry, distance and world limits
- Trade history log (
history.log)
- Admin tools:
/trade force, /trade reload
- Works with custom items (names, lore, enchantments, custom data are preserved)
Fully customizable
messages.yml: every single message, with placeholders
gui.yml: title, materials, names, lore, glow and button slots
config.yml: limits, tax, blacklist, sounds and behavior
Colors
All texts support legacy codes and hex colors. All of these work:
	D4EDD #9D4EDD <#9D4EDD> {#9D4EDD} &l &o &7
The default theme is purple.
Commands
| Command |
Description |
/trade <player> |
Send a trade request |
/trade accept [player] |
Accept a request |
/trade deny [player] |
Deny a request |
/trade cancel |
Cancel the requests you sent |
/trade toggle |
Enable or disable incoming requests |
/trade reload |
Reload the configuration (admin) |
/trade force <player> [player] |
Force a trade (admin) |
Aliases: /ct, /chorustrade, /scambio
Permissions
| Permission |
Default |
Description |
chorustrade.use |
everyone |
Use /trade |
chorustrade.toggle |
everyone |
Use /trade toggle |
chorustrade.admin |
op |
Reload and force trades |
chorustrade.bypass.toggle |
op |
Send requests to players who disabled them |
chorustrade.bypass.cooldown |
op |
Ignore the request cooldown |
chorustrade.bypass.distance |
op |
Ignore distance and world limits |
chorustrade.bypass.blacklist |
op |
Trade blacklisted items |
Requirements
- Paper 26.2
- Java 25
- Vault and an economy plugin (optional, only for money trades)
Installation
- Drop
ChorusTrade.jar into your plugins folder
- Restart the server
- Edit the files in
plugins/ChorusTrade/ and run /trade reload
Made by Controll3r24.
评论 0
登录后参与评分
还没有评论,来抢沙发吧