OneGUI - 防复制与库存安全
OneGUI 是一款专为 Paper 和 Purpur 1.21+ 服务器设计的轻量级安全插件,旨在阻止库存复制漏洞。许多常见的复制(dupe)故障利用欺骗服务器同时打开多个菜单,或者在移动、转身或切换物品时与容器进行交互来达成目的。OneGUI 通过严格执行“一次只能打开一个菜单”的规则,并在检测到可疑客户端行为时立即关闭界面来解决这一问题。
为什么需要这个?
作弊者经常使用数据包漏洞、故意制造的延迟或修改过的客户端,使他们的客户端与服务器不同步。通过强制让箱子保持开启状态,而角色正在远离、旋转或滚动浏览快捷栏,他们能欺骗服务器复制物品。OneGUI 充当服务端检查机制,直接切断这些可利用的机会窗口。
核心保护
- 单一 GUI 强制: 插件会跟踪玩家是否已打开某个菜单。如果客户端在未正确关闭第一个菜单的情况下尝试打开第二个库存数据包,插件将取消该操作并强制关闭所有菜单。
- 移动检测: 如果玩家在处于箱子、虚拟 GUI 或任何库存界面期间移动位置或跳跃,界面将立即关闭。
- 相机旋转追踪: 如果玩家在查看菜单时转身或改变头部角度(偏航/俯仰),连接将被中断。这可以阻止无头数据包注入器和宏命令,防止它们在将玩家视角从方块移开的同时保持菜单开启。
- 快捷栏锁定: 如果玩家在查看库存时更改了当前活动的快捷栏槽位(例如,从第 3 槽切换到第 4 槽),容器将立即强制关闭,以阻止槽位切换漏洞。
配置
如果您的服务器上其他插件与这些检查冲突,您可以在 config.yml 文件中切换以下任意检查项:
checks:
# 如果玩家行走或跳跃则关闭 GUI
movement: true
# 如果玩家转动头部/相机视角则关闭 GUI
rotation: true
# 如果玩家更改当前活动的快捷栏槽位则关闭 GUI
hotbar: true
messages:
reload: "&a[OneGUI] 配置已成功重载!"
no-permission: "&c[OneGUI] 您没有执行此命令的权限。"
命令与权限
/onegui reload - 即时重载配置更改,无需重启服务器。
- 权限:
onegui.admin (默认授予服务器操作员)。
OneGUI - Anti-Dupe & Inventory Security
OneGUI is a lightweight security plugin for Paper and Purpur 1.21+ servers designed to stop inventory duplication exploits. Many common dupe glitches rely on tricking the server into opening multiple menus at once, or interacting with a container while moving, turning around, or swapping items. OneGUI solves this by strictly enforcing a "one menu at a time" rule and instantly closing interfaces if suspicious client behavior is detected.
Why is this needed?
Cheaters often use packet exploits, intentional lag, or modified clients to desync their client from the server. By forcing a chest to stay open while their character is moving away, rotating, or scrolling through their hotbar, they can trick the server into duplicating items. OneGUI acts as a server-side check that shuts down these exact windows of opportunity.
Core Protections
- Single GUI Enforcement: The plugin tracks when a player has a menu open. If a client attempts to open a second inventory packet without properly closing the first one, the plugin cancels the action and forces all menus to close.
- Movement Detection: If a player moves their position or jumps while inside a chest, virtual GUI, or any inventory, the interface is closed instantly.
- Camera Rotation Tracking: If a player turns around or shifts their head angle (Yaw/Pitch) while looking at a menu, it breaks the connection. This stops headless packet injectors and macros that rotate the player away from a block while keeping a menu open.
- Hotbar Lockout: If a player changes their active hotbar slot (e.g., swapping from slot 3 to slot 4) while viewing an inventory, the container is forced shut immediately to stop slot-swapping exploits.
Configuration
You can toggle any of these checks in the config.yml file if they conflict with other plugins on your server:
checks:
# Close GUI if player walks or jumps
movement: true
# Close GUI if player turns their head / camera view
rotation: true
# Close GUI if player changes their active hotbar slot
hotbar: true
messages:
reload: "&a[OneGUI] Configuration reloaded successfully!"
no-permission: "&c[OneGUI] You do not have permission to execute this command."
Commands & Permissions
/onegui reload - Reloads the configuration changes instantly without needing a server restart.
- Permission:
onegui.admin (Defaults to server operators).
评论 0
登录后参与评分
还没有评论,来抢沙发吧