❄️ FrozenCmdWhitelist
? 插件信息
一款基于权限等级的 Minecraft 服务器命令白名单插件。它根据权限等级(默认 / 工作人员 / 管理员)限制玩家可执行的命令以及标签补全中显示的命令。任何不在玩家白名单中的命令都会被阻止,并从标签补全中隐藏。管理员(OPs)可以绕过所有限制。
- 名称: FrozenCmdWhitelist
- 版本: 1.2.0
- 主类:
me.drfrozenxd.frozencw.FrozenCmdWhitelist
? 作者信息
✅ 版本 / 兼容性 / 软件支持
- API 版本: 1.20
- 构建基础: Paper API 1.21.1-R0.1-SNAPSHOT (Java 17 工具链) ☕
- 服务器软件: Paper(及其分支,例如 Folia/Purpur,通过 Paper API)?
- 依赖项: LuckPerms ?(必需 —
depend: [LuckPerms])。用于实时检测权限变化,从而使命令列表和标签补全即时更新(通过 UserDataRecalculateEvent),无需重新登录即可生效。⚡
? 权限
| 权限 |
默认值 |
用途 |
frozencmdwhitelist.default |
false |
授予“默认”等级命令白名单权限 |
frozencmdwhitelist.staff |
false |
授予“工作人员”等级命令白名单权限 |
frozencmdwhitelist.op |
false |
授予“管理员”等级命令白名单权限 |
frozencmdwhitelist.reload |
op |
允许使用重载命令 |
如果玩家没有任何上述三个等级权限,则完全不受白名单影响。无论等级如何,管理员(OPs)始终可以绕过限制。
⌨️ 命令
| 命令 |
别名 |
所需权限 |
描述 |
/frozencmdwhitelist |
/fcw |
frozencmdwhitelist.reload |
? 重载 config.yml 并立即向所有在线玩家推送更新后的命令白名单(刷新执行规则和标签补全) |
? 用途
- ? 将服务器锁定为仅允许每个等级拥有精心策划的命令集(例如生存/经济服务器、小游戏大厅、受限的工作人员环境)。
- ? 防止玩家发现或运行他们未明确授权的命令——被阻止的命令甚至不会出现在标签补全中。
- ? 让工作人员拥有比默认玩家更广泛的命令集,并为管理员提供更广泛(或无限制)的命令集。
- ⚡ 即时反映权限变化:当玩家的 LuckPerms 权限发生变化或配置文件重载时,其允许的命令列表和标签补全会立即更新,无需重新登录。
- ? 被阻止的命令尝试会显示可配置的操作栏消息和音效。
?️ 如何将更多命令添加到标签补全
命令在 config.yml 的 commands: 部分按等级定义。将命令名称(不带前导斜杠)添加到相关等级的列表中:
commands:
default:
- home
- spawn
- mycommand # 像这样添加新命令
staff:
- kick
- mute
- mycommand
op:
- gmc
- crate
- mycommand
- ➕ 如果需要多个等级都能访问同一命令,请将其添加到多个等级的列表中。
- ? 编辑
config.yml 后,运行 /frozencmdwhitelist(或 /fcw)进行重载——这将立即更新所有在线玩家的标签补全和命令执行规则,无需他们重新登录。
- ? 不在玩家等级列表中的命令不会出现在标签补全中,也无法由该玩家执行(除非他们是管理员)。?
❄️ FrozenCmdWhitelist
? Plugin Info
A tier-based command whitelist plugin for Minecraft servers. It restricts which commands a player can execute and which commands appear in tab completion, based on permission tier (default / staff / op). Any command not on a player's whitelist is blocked and hidden from tab complete. OPs bypass all restrictions.
- Name: FrozenCmdWhitelist
- Version: 1.2.0
- Main class:
me.drfrozenxd.frozencw.FrozenCmdWhitelist
? Author Info
✅ Versions / Compatibility / Software Support
- API Version: 1.20
- Built against: Paper API 1.21.1-R0.1-SNAPSHOT (Java 17 toolchain) ☕
- Server software: Paper (and forks, e.g. Folia/Purpur, via Paper API) ?
- Dependency: LuckPerms ? (required —
depend: [LuckPerms]). Used to detect permission changes in real time so command lists and tab completion update instantly (via UserDataRecalculateEvent) without needing a relog. ⚡
? Permissions
| Permission |
Default |
Purpose |
frozencmdwhitelist.default |
false |
Grants the "default" tier command whitelist |
frozencmdwhitelist.staff |
false |
Grants the "staff" tier command whitelist |
frozencmdwhitelist.op |
false |
Grants the "op" tier command whitelist |
frozencmdwhitelist.reload |
op |
Allows use of the reload command |
A player with none of the three tier permissions is not affected by the whitelist at all. OPs always bypass restrictions regardless of tier.
⌨️ Commands
| Command |
Aliases |
Permission |
Description |
/frozencmdwhitelist |
/fcw |
frozencmdwhitelist.reload |
? Reloads config.yml and immediately pushes the updated command whitelist to all online players (refreshes both execution rules and tab completion) |
? Uses
- ? Lock down a server to only a curated set of commands per rank (e.g. survival/economy servers, minigame lobbies, restricted staff environments).
- ? Prevent players from discovering or running commands they don't have explicit access to — blocked commands don't even show up in tab complete.
- ? Give staff a wider command set than default players, and give OPs an even wider (or unrestricted) set.
- ⚡ Instantly reflect permission changes: when a player's LuckPerms permissions change, or when the config is reloaded, their allowed command list and tab completion update immediately with no relog needed.
- ? Blocked command attempts show a configurable action bar message and sound effect.
?️ How to Add More Commands to Tab Completion
Commands are defined per tier in config.yml under the commands: section. Add the command name (no leading slash) to the relevant tier's list:
commands:
default:
- home
- spawn
- mycommand # add new commands like this
staff:
- kick
- mute
- mycommand
op:
- gmc
- crate
- mycommand
- ➕ Add the same command to multiple tiers if more than one rank should have access to it.
- ? After editing
config.yml, run /frozencmdwhitelist (or /fcw) to reload — this instantly updates tab completion and command execution rules for all online players without requiring them to relog.
- ? Commands not present in a player's tier list will not appear in tab completion and cannot be executed by that player (unless they are OP). ?
评论 0
登录后参与评分
还没有评论,来抢沙发吧