Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_MeuttNXP.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
CommandKick - 墨喵 Minecraft 资源
CommandKick 图标

CommandKick

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/commandkick
资源信息

Minecraft 版本: 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11

平台: fabric

标签: management social utility

资源介绍

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

  1. Install Fabric Loader and Fabric API.
  2. Install Fabric Language Kotlin.
  3. Drop CommandKick into your server's mods folder.
  4. 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

下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
Watereye Optimization

价格:0 墨喵币
下载量:0

查看详情
Sus Sand and Gravel

价格:0 墨喵币
下载量:0

查看详情
TaCZ: Bleeding

价格:0 墨喵币
下载量:0

查看详情
Third Person Shooting: Zero

价格:0 墨喵币
下载量:0

查看详情