stopcheat
A simple mod for managing player command permissions in Minecraft multiplayer servers.
介绍
A lightweight mod designed to help server owners easily manage player command permissions in Minecraft multiplayer. Intuitively disable specific commands, while allowing designated whitelisted players to bypass command restrictions.
AI Translation Notice: This documentation was translated with the assistance of AI. The original author is a non-native English speaker, so please feel free to report any inaccuracies.
Configuration Guide
This mod can be configured either through the in-game GUI (Mod Menu / Config screen) or by manually editing the configuration file:
File location: config/stopcheat-common.toml
Config Fields
blacked_commands
- Type: List of strings
- Purpose: Defines which commands (and their specific arguments) should be blocked from execution.
- Format:
{command}:{checkIndex}:{disabled_args}
| Segment | Description |
|---|---|
{command} |
The Minecraft command name (without the leading /). |
{checkIndex} |
The argument position to check. 0 means the entire command is blocked regardless of arguments. 1 means the first argument after the command, 2 means the second, and so on. |
{disabled_args} |
A comma-separated list of argument values to block. This field is ignored when checkIndex is 0. |
How It Works
Example 1 — Block an entire command:
blacked_commands = ["give:0:"]
giveis the command name.0means “do not check any arguments; block the entire command unconditionally.”disabled_argsis ignored because the entire command is banned.- Result:
/givecannot be used in any form.
Example 2 — Block specific arguments:
blacked_commands = ["gamemode:1:creative,spectator"]
gamemodeis the command name.1means “check the 1st argument after/gamemode.”creative,spectatorare the banned values.- Result:
/gamemode creativeand/gamemode spectatorare blocked, but/gamemode survivaland/gamemode adventurestill work normally.
Example 3 — Block multiple commands:
blacked_commands = [
"give:0:", # Block /give entirely
"fill:0:", # Block /fill entirely
"gamemode:1:creative,spectator" # Block only creative and spectator
]
pass_users
- Type: List of UUID strings
- Purpose: Players in this list bypass all command restrictions.
- Format: Standard UUID string with hyphens, e.g.
"aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
pass_users = [
"aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa", # Admin Alice
"bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" # Admin Bob
]
Tips
- Always use full UUIDs with hyphens in
pass_users; player names are not accepted. Use a UUID lookup tool if you don’t know a player’s UUID.
常见问题
stopcheat 支持哪些 Minecraft 版本?
stopcheat 支持 Minecraft Java 版 1.21–1.21.1,共 2 个版本,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
stopcheat 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
评论
登录后评论和评分