
DisableCommand
Disable any command via config file or in‑game gamerule – with multilingual feedback. Lightweight.
Disable Command is a lightweight NeoForge mod that lets server administrators block any command (or command prefix) on their server – without restarting and without client mods.
🔧 Features
- Configurable ban list – specify commands in
config/disablecommand-common.toml(e.g.,["tp::s", "gamemode creative::e", "kill::e"]). - In‑game toggle – use the gamerule
/gamerule disableCommandEnabled falseto temporarily disable the blocker (useful for maintenance or troubleshooting). - Server‑side only – install it on your NeoForge server; clients don’t need anything.
🎮 Usage
- Place the mod in your server’s
modsfolder. - Start the server – it will generate the config file.
- Edit
config/disablecommand-common.toml:[commands] disabledCommands = ["tp::s", "gamemode creative::e", "kill::e"]
(Optional) Reload or restart – changes apply immediately.
In game, run /gamerule disableCommandEnabled true to enable blocking, or false to disable it temporarily.
⚙️ Configuration The config file contains:
disabledCommands – list of command strings (without the /). Uses prefix matching, so "gamemode" blocks /gamemode creative as well.
📦 Compatibility Minecraft 1.21.1 – NeoForge 21.11.44 or later.
Works in single‑player (integrated server) and dedicated servers.
No dependencies.
Как поиграть с друзьями с модом DisableCommand?
Мод DisableCommand куда интереснее в компании: поднимите сервер Майнкрафт с уже установленным модом, позовите друзей и играйте по своим правилам. Хостинг Майнкрафт для мода DisableCommand будет готов за пару минут - BungeeHost сделает всё за вас.
