
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.
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.21.1, 1.21.2, 1.21.3
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as disablecommand-1.0.jar — drop this file into the mods folder
- Download size: 9 KB
- Download link checked 31 Aug 2026 — working
These come from our own check of the pack file, not from the source page.