HypeTrade
一款功能丰富、安全且完全可配置的 Paper 1.21+ 玩家交易插件
概述
HypeTrade 提供了一套精美的实时 GUI 交易系统,支持两名玩家之间进行交易。双方可以看到相同的共享库存界面,可以同时提供物品和金钱,并且必须在配置好的倒计时结束前都点击**准备就绪(Ready)**才能完成交易。交易的每一步都受到保护,防止出现复制漏洞、库存篡改以及意外断连等问题。
功能特性
直观的 GUI
- 共享 54 格库存: 双方玩家实时看到相同的屏幕。
- 玩家头像图标: 显示每位交易者的名字、提供的物品数量和金钱。
- 动态分隔线: 在倒计时期间改变颜色(绿色 → 黄色 → 红色)。
- 取消按钮: 始终可见,以便安全退出。
金钱交易(Vault)
- 灵活的操作步骤: 左键点击进行小幅增加,右键点击进行大幅调整(均可配置)。
- 安全性: 每笔交易设有最大金额上限,以防止极端的大额交易。
- 验证机制: 在每个步骤以及交易完成时都会实时验证余额。
智能倒计时系统
- 视觉辅助: 带有颜色变化的动态Boss Bar 倒计时。
- 标题画面: 交易完成和交易取消时显示的覆盖层。
- 自动重置: 如果任何一方更改了交易内容,倒计时将自动重置。
漏洞防范
- 防复制: 倒计时期间放置的物品会被锁定。在最后几秒内无法添加或移除物品。
- 严格验证: 对 Shift+点击、数字键交换以及副手栏交换均进行黑名单验证。
- 安全返还: 如果交易被取消,即使服务器关机,物品也会安全返还给原主。
命令与权限
| 命令 |
描述 |
权限 |
/trade <player> |
发送交易请求 |
hypetrade.use |
/trade accept |
接受传入的请求 |
hypetrade.use |
/trade stats |
查看交易统计信息 |
hypetrade.stats |
/trade reload |
重载配置与语言文件 |
hypetrade.admin |
安装指南
- 下载 HypeTrade.jar 并将其放入
/plugins 文件夹中。
- 确保已安装 Vault 和经济类插件。
- 启动服务器以生成默认的
config.yml 文件。
- 在配置文件中设置您喜欢的语言:
language: "en" 或 language: "tr"。
- 运行
/trade reload 以应用更改。
常见问题
问:如果玩家在交易过程中断开了连接怎么办?
答: 交易将立即取消,所有物品会安全地返还给各自的主人。
问:是否可能发生物品复制?
答: 不会。倒计时期间物品会被锁定,并且在任何交易发生之前都会运行最终的余额检查。
由 xXantares_peek ❤️ 制作
HypeTrade
A feature-rich, secure and fully configurable player trading plugin for Paper 1.21+
Overview
HypeTrade provides a polished, real-time chest-GUI trading system between İwo players. Both players see the same shared inventory, can offer items and money simultaneously, and must both click Ready before a configurable countdown completes the trade. Every step of the trade is protected against duplication exploits, inventory manipulation, and unexpected disconnects.
Features
Intuitive GUI
- Shared 54-slot inventory: Both players see the same screen in real time.
- Player skull icons: Showing each trader's name, item count and money offered.
- Animated separator: Changes colour during the countdown (green → yellow → red).
- Cancel button: Always visible for a safe exit.
Money Trading (Vault)
- Flexible Steps: Left-click for small increments and Right-click for large steps (both configurable).
- Security: Per-trade maximum money cap to prevent extreme transactions.
- Verification: Real-time balance verification at every step and again at trade completion.
Smart Countdown System
- Visual Aids: Animated Boss Bar countdown with colour progression.
- Title Screens: Overlay on trade complete and trade cancel.
- Auto-Reset: If either player changes the trade contents, the countdown resets automatically.
Exploit Prevention
- Anti-Dupe: Items placed during the countdown are locked. No adding/removing during the final seconds.
- Strict Validation: Shift-click, number-key swap, and off-hand swap are all validated against the blacklist.
- Safe Returns: Items always returned safely if the trade is cancelled, even on server shutdown.
Commands & Permissions
| Command |
Description |
Permission |
/trade <player> |
Send a trade request |
hypetrade.use |
/trade accept |
Accept an incoming request |
hypetrade.use |
/trade stats |
View trade statistics |
hypetrade.stats |
/trade reload |
Reload config & language |
hypetrade.admin |
Installation
- Download HypeTrade.jar and place it in your
/plugins folder.
- Ensure Vault and an economy plugin are installed.
- Start your server to generate the default
config.yml.
- Set your preferred language in the config:
language: "en" or language: "tr".
- Run
/trade reload to apply changes.
FAQ
Q: What happens if a player disconnects mid-trade?
A: The trade is cancelled immediately and all items are returned to their owners safely.
Q: Is duplication possible?
A: No. Items are locked during the countdown, and final balance checks run before any transaction occurs.
Made with ❤️ by xXantares_peek
评论 0
登录后参与评分
还没有评论,来抢沙发吧