CommandGuard
一款适用于 Paper/Spigot、Velocity 和 Waterfall 的跨平台命令拦截器与 Tab 补全管理器。
通过灵活的权限组系统(支持继承、优先级和按服务器规则),精确控制每个玩家可以执行以及在 Tab 补全中看到的命令。
功能
- Tab 补全过滤 — 玩家仅能看到其有权使用的命令
- 命令拦截 — 使用完全自定义的操作来拦截命令(消息、标题、音效、踢出、药水效果、控制台命令)
- 白名单模式 — 仅允许特定命令,拦截其余所有命令
- 权限组 — 定义包含不同命令列表的组,并通过 LuckPerms 进行分配
- 组继承 — 组可以递归地扩展其他组
- 组合并 — 优先级相同的组会自动合并
- 按服务器分组 — 将组限制在特定的后端服务器上(仅限代理端)
- 跨服务器同步 — 代理端通过插件消息将其允许的命令推送到后端,确保整个网络中的 Tab 补全一致性
- 间谍客户端防护 — 拦截隐藏命令的 Tab 补全数据包响应
- 多语言支持 — 内置
en_EN 和 ru_RU,可添加自己的语言文件
- 可配置前缀 — 可在语言文件中更改插件前缀,无需重启
/cg check <player> — 检查玩家所属的组及其拥有的命令
/cg updategroup <player> — 立即向玩家推送更新后的 Tab 补全列表
平台
| 平台 |
版本 |
| Paper / Spigot |
1.13+ |
| Velocity |
3.1+ |
| Waterfall |
1.18+ |
需要 Java 17+。
网络设置
在代理端和每个后端服务器上安装 CommandGuard,并将两端的 is_network 设置为 true。代理端将在每次玩家连接时自动将其允许的命令列表推送到后端 —— /cgv reload 后无需重新登录即可生效。
文档
完整文档:1wairesd.github.io/1wairesdIndustriesWiki
源代码:github.com/1wairesd/CommandGuard
CommandGuard
A cross-platform command blocker and tab-complete manager for Paper/Spigot, Velocity, and Waterfall.
Control exactly which commands each player can execute and see in tab-complete — using a flexible permission group system with inheritance, priority, and per-server rules.
Features
- Tab-complete filtering — players only see commands they're allowed to use
- Command blocking — block commands with fully customizable actions (message, title, sound, kick, potion effect, console command)
- Whitelist mode — allow only specific commands, block everything else
- Permission groups — define groups with different command lists, assign via LuckPerms
- Group inheritance — groups can extend other groups recursively
- Group merging — groups with equal priority are merged automatically
- Per-server groups — restrict a group to specific backend servers (proxy only)
- Cross-server sync — proxy pushes its allowed commands to backend via plugin messaging so tab-complete is consistent across the network
- Spy-client protection — blocks tab-complete packet responses for hidden commands
- Multi-language —
en_EN and ru_RU bundled, add your own lang file
- Configurable prefix — change the plugin prefix in the lang file, no restart needed
/cg check <player> — inspect which group and commands a player has
/cg updategroup <player> — push updated tab list to a player instantly
Platforms
| Platform |
Versions |
| Paper / Spigot |
1.13+ |
| Velocity |
3.1+ |
| Waterfall |
1.18+ |
Java 17+ required.
Network Setup
Install CommandGuard on both the proxy and each backend server, set is_network: true on both sides. The proxy will automatically push its allowed command list to the backend on every player connection — no relog needed after /cgv reload.
Documentation
Full documentation: 1wairesd.github.io/1wairesdIndustriesWiki
Source code: github.com/1wairesd/CommandGuard
评论 0
登录后参与评分
还没有评论,来抢沙发吧