SecondThought: 命令确认守卫
防止因误按回车键而意外发送 /clear、/kill、/stop、/ban 或其他命令。
SecondThought 是一个轻量级的客户端命令确认模组。当某个命令需要确认时,其首次提交会在本地被拦截。在配置的时间窗口内再次发送完全相同的命令以进行确认。
它既适用于单人游戏,也适用于多人服务器,且无需服务器安装该模组即可工作。
查看守卫效果
实际游戏画面展示了首个受保护的 /clear 命令被拦截的情况。默认确认窗口为 5 秒;重复输入完全相同的命令以确认。此功能并非撤销或备份工具。
功能特性
- 在命令到达服务器之前保护手动输入的命令
- 要求确认时必须输入完全相同的命令及参数
- 可自定义哪些命令直接执行,哪些需要确认
- 通过本地游戏内命令即时切换激活模式
- 自动将模式更改保存至 JSON 配置文件
- 警告信息中仅显示命令根路径,而非可能敏感的参数
- 如果配置文件无效,则回退到安全默认值
- 无遥测数据收集、无网络服务依赖、无需 Fabric API 或服务端依赖
命令模式
| 模式 | 行为 |
|---|---|
ALL_DIRECT |
立即发送所有命令 |
LISTED_DIRECT |
立即发送已配置的直连命令;其他所有命令均需确认 |
NONE_DIRECT |
对所有手动输入的命令均要求确认 |
LISTED_PROTECTED |
仅对已配置的受保护命令要求确认(此为默认设置) |
无需重启即可切换模式:
/secondthought mode all
/secondthought mode listed
/secondthought mode none
/secondthought mode protected
/secondthought status
/secondthought help
这些控制命令仅在本地处理,永远不会发送至服务器。
默认保护
默认配置保护以下命令根路径:
ban, ban-ip, clear, deop, kill, op, stop, whitelist, worldborder
编辑 config/secondthought.json 以更改受保护或直接执行的命令列表以及确认窗口时长。早期 0.1.0 测试版本的现有配置文件保持兼容。
要求
- Minecraft Java Edition 1.21.11
- Fabric Loader 0.19.3 或兼容的后续 0.19.x 版本
- Java 21
- 仅限客户端安装
不需要 Fabric API。
范围与兼容性
SecondThought 守卫通过 Minecraft 客户端手动提交的正常命令。它不提供权限管理、不替代服务器权限插件、不会自动分类所有模组命令,也无法撤销已经执行过的命令。由点击文本触发的命令或由其他模组无人值守发送的命令不在 0.1.0 版本的覆盖范围内。
SecondThought: Command Confirmation Guard
Prevent an accidental /clear, /kill, /stop, /ban, or other command from
being sent with a single press of Enter.
SecondThought is a lightweight client-side command confirmation mod. When a command requires confirmation, its first submission is blocked locally. Send the exact same command again within the configured time window to confirm it.
It works in singleplayer and on multiplayer servers without requiring the server to install the mod.
See the guard work
Real gameplay shows the first protected /clear being blocked. The default confirmation window is 5 seconds; repeat the exact command to confirm. This is not an undo or backup tool.
Features
- Protect manually typed commands before they reach the server
- Require the exact same command and arguments for confirmation
- Choose which commands are direct and which require confirmation
- Change the active mode instantly with a local in-game command
- Save mode changes automatically to the JSON configuration
- Show only the command root in warnings, not potentially sensitive arguments
- Fall back to safe defaults if the configuration is invalid
- No telemetry, network service, Fabric API, or server-side dependency
Command modes
| Mode | Behaviour |
|---|---|
ALL_DIRECT |
Send every command immediately |
LISTED_DIRECT |
Send only configured direct commands immediately; confirm all others |
NONE_DIRECT |
Require confirmation for every manually typed command |
LISTED_PROTECTED |
Confirm only configured protected commands; this is the default |
Change modes without restarting:
/secondthought mode all
/secondthought mode listed
/secondthought mode none
/secondthought mode protected
/secondthought status
/secondthought help
These control commands are handled locally and are never sent to the server.
Default protection
The default configuration protects these command roots:
ban, ban-ip, clear, deop, kill, op, stop, whitelist, worldborder
Edit config/secondthought.json to change the protected or direct command
lists and the confirmation window. Existing configuration files from earlier
0.1.0 test builds remain compatible.
Requirements
- Minecraft Java Edition 1.21.11
- Fabric Loader 0.19.3 or a compatible later 0.19.x release
- Java 21
- Client-side installation only
Fabric API is not required.
Scope and compatibility
SecondThought guards normal commands manually submitted through the Minecraft client. It does not grant permissions, replace a server permission plugin, classify every modded command automatically, or undo a command that has already run. Commands triggered by clickable text or sent unattended by another mod are outside version 0.1.0's scope.
下载 SecondThought: Command Confirmation Guard
下载 SecondThought: Command Confirmation Guard
下载 SecondThought: Command Confirmation Guard
下载 SecondThought: Command Confirmation Guard
下载 SecondThought: Command Confirmation Guard
下载 SecondThought: Command Confirmation Guard
下载 SecondThought: Command Confirmation Guard
下载 SecondThought: Command Confirmation Guard
下载 SecondThought: Command Confirmation Guard
下载 SecondThought: Command Confirmation Guard
添加 Minecraft 26.3 NeoForge 版本。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧