CommandKick
Kicks players who run blocked commands, instead of removing the commands from the tree. Server-side, configurable, Fabric + Kotlin.
截图
介绍
CommandKick
Instead of fiddling with permissions,CommandKick takes a different approach: the commands stay fully visible and tab-completable, but the moment a player runs a blocked one, they’re kicked with a custom message. Humorous, no?
Features
- Leaves the command tree intact. Blocked commands still show up and tab-complete; only execution is intercepted.
- Console-safe. Server console, command blocks, datapack functions, and rcon run blocked commands normally. Only player-initiated runs are caught.
- Configurable. Edit a JSON file and restart — no rebuild needed.
- Custom kick message. Set whatever text players see when they get booted.
- Logging. Every kick records which player ran which command, in the server log.
- Lightweight. No LuckPerms or other permission-system dependency required.
Configuration
On first launch, CommandKick writes config/commandkick.json with defaults. Edit it and restart the server to apply — the command list is read once at startup, because Brigadier builds the command tree only at boot. (A /reload is not enough.)
{
"kickMessage": "command verboten.",
"blockedCommands": [
"tick",
"givepokemon",
"pokespawn"
]
}
Each entry blocks that command and all of its subcommands — listing tick covers /tick freeze, /tick rate, and so on.
Installation
- Install Fabric Loader and Fabric API.
- Install Fabric Language Kotlin.
- Drop CommandKick into your server’s
modsfolder. - Start the server once to generate the config, edit it, then restart.
Server-side only — no client installation needed.
Made with the help of Claude
常见问题
CommandKick 支持哪些 Minecraft 版本?
CommandKick 支持 Minecraft Java 版 1.21.1–1.21.11,共 11 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
CommandKick 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分