? ShadowTrade
ShadowTrade 是一款专为 Minecraft Paper 服务器打造的现代化、高度优化且极其安全的基于 GUI 的玩家交易插件。其品质媲美付费高级插件,允许玩家在 sleek(时尚)、完全动画化的界面中安全地交易物品、Vault 经济货币、经验等级和 PlayerPoints。
✨ 核心特性
- 100% 防骗架构: 开箱即用,阻断所有已知的交易漏洞。通过严格的三阶段状态机,彻底防止 Shift 点击漏洞、背包已满掉落、突然断线、交易中死亡以及最后一秒的调包骗局。
- 双重确认系统: 双方玩家必须锁定各自的报价。如果任何玩家在按下“就绪”后更改了物品或金额,所有确认将立即撤销,3 秒倒计时也会取消。
- 通用物品支持: 完美交易 NBT 数据、CustomModelData、附魔、描述文本(Lore)、玩家头颅,以及来自 ItemsAdder、Oraxen、MMOItems 和 EcoItems 等插件的自定义物品。
- 多货币支持: 玩家可以同时交易物品、Vault 经济余额、经验等级和 PlayerPoints。
- 异步数据库日志记录: 每笔完成和取消的交易都会永久记录到 SQLite 或 MySQL 中,确保拥有完整的审计追踪,而不会导致主服务器线程卡顿。
- 现代 MiniMessage 翻译: 告别传统的
& 颜色代码。每条消息原生支持现代十六进制颜色、渐变、点击动作和悬停文本。
?️ 无与伦比的安全性
ShadowTrade 的 TradeProtectionListener 严格监控所有交互。
- 背包锁定: 玩家仅限于操作自己侧的交易 GUI。
- 事件取消: 如果玩家死亡、传送离开、断开连接或服务器意外重启,交易会话将立即失效,所有物品会安全地返回持有者的背包或在脚边安全掉落。
- 无复制漏洞: 完全免疫客户端不同步、数据包滥用和快捷栏交换。
⌨️ 命令与权限
/trade <player> - 向在线玩家发送交易请求。
/trade accept - 接受待处理的交易请求。
/trade deny - 拒绝待处理的交易请求。
/trade help - 显示帮助菜单。
/trade reload - 无缝重新加载所有配置文件。
权限:
shadowtrade.use — 基本访问权限,用于发送和接收请求。(默认:true)
shadowtrade.admin — 访问管理员监控命令。(默认:op)
shadowtrade.bypasscooldown — 绕过标准的请求垃圾邮件冷却时间。
shadowtrade.reload — 重新加载插件文件。
⚙️ 软依赖
ShadowTrade 独立性极强,但如果您的服务器上存在以下插件,它会自动与之挂钩:
? 优化
采用干净的面向对象编程原则编写,并利用 HikariCP 进行连接池管理,ShadowTrade 实现了零内存泄漏,且不执行任何同步数据库查询。它基于 Java 21 构建,专门针对 Paper 1.21.x 进行优化,以确保托管 500+ 并发玩家的服务器具有最大的线程安全性。
? ShadowTrade
ShadowTrade is a modern, highly optimized, and incredibly secure GUI-based player trading plugin for Minecraft Paper servers. Built to match the quality of paid premium plugins, it allows your players to securely trade items, Vault economy money, experience levels, and PlayerPoints all within a sleek, fully animated interface.
✨ Core Features
- 100% Anti-Scam Architecture: Every known trading exploit is blocked out of the box. Shift-click exploits, inventory full drops, sudden disconnects, death during a trade, and last-second bait-and-switch scams are entirely prevented by a rigorous 3-Phase State Machine.
- Double Confirmation System: Both players must lock in their offers. If any player alters their items or money after pressing "Ready", all confirmations are instantly revoked and the 3-second countdown is canceled.
- Universal Item Support: Flawlessly trades NBT data, CustomModelData, enchantments, lore, Player Heads, and custom items from plugins like ItemsAdder, Oraxen, MMOItems, and EcoItems.
- Multi-Currency Support: Players can trade items alongside Vault Economy balances, Experience Levels, and PlayerPoints.
- Asynchronous Database Logging: Every completed and canceled trade is permanently logged to SQLite or MySQL, ensuring you have a complete audit trail without ever lagging your main server thread.
- Modern MiniMessage Translations: Say goodbye to legacy
& color codes. Every message natively supports modern Hex colors, gradients, click-actions, and hover-texts.
?️ Unrivaled Security
ShadowTrade's TradeProtectionListener strictly monitors all interaction.
- Inventory Locking: Players are restricted to only their side of the trading GUI.
- Event Cancellations: If a player dies, teleports away, drops connection, or the server restarts unexpectedly, the trade session is immediately invalidated, and all items are safely returned to the owners' inventories or dropped securely at their feet.
- No Duplication Glitches: Completely immune to client-side desync, packet abuse, and hotbar swapping.
⌨️ Commands & Permissions
/trade <player> - Send a trade request to an online player.
/trade accept - Accept a pending trade request.
/trade deny - Decline a pending trade request.
/trade help - Display the help menu.
/trade reload - Reload all configuration files seamlessly.
Permissions:
shadowtrade.use — Basic access to send and receive requests. (Default: true)
shadowtrade.admin — Access to admin monitoring commands. (Default: op)
shadowtrade.bypasscooldown — Bypass the standard request spam-cooldown.
shadowtrade.reload — Reload plugin files.
⚙️ Soft-Dependencies
ShadowTrade is highly independent but will automatically hook into these plugins if they are present on your server:
? Optimization
Written with clean OOP principles and utilizing HikariCP for connection pooling, ShadowTrade boasts zero memory leaks and performs zero synchronous database queries. It's built on Java 21, specifically targeting Paper 1.21.x to ensure maximum thread safety for servers hosting 500+ concurrent players.
评论 0
登录后参与评分
还没有评论,来抢沙发吧