HomeJavaModsDisableCommand
DisableCommand

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

🎮 Usage

  1. Place the mod in your server’s mods folder.
  2. Start the server – it will generate the config file.
  3. 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.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more