
Modrinth · Minecraft mod
DisableCommand
Disable any command via config file or in‑game gamerule – with multilingual feedback. Lightweight.
Quick answer
Which DisableCommand release matches 1.21.7 NeoForge?
DisableCommand 1.0 targets 1.21.1, 1.21.10, 1.21.11 with NeoForge. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.
Where it goes
Is DisableCommand required on the client, server, or both?
Do not install it on the client. It must be installed on the dedicated server.
This file is marked server-only.
What else does DisableCommand 1.0 need?
1.0 on 1.21.7 NeoForge. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add DisableCommand without breaking your instance.
Built for DisableCommand 1.0 on 1.21.7 NeoForge. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.0. It targets 1.21.1, 1.21.10, 1.21.11 with NeoForge; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.0. It opens that exact file at the source.
About this project
What does DisableCommand add?
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.
Project description from Modrinth.
Pick your setup
DisableCommand by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
1.21.10
1 loader build1.21.9
1 loader build1.21.8
1 loader build1.21.7
1 loader build1.21.6
1 loader build1.21.5
1 loader build1.21.4
1 loader build1.21.3
1 loader build1.21.2
1 loader build1.21.1
1 loader buildCheck the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
DisableCommand versions and loaders
1.0
disablecommand-1.0.jar
18 Jul 2026
Looking for an older file? The official Modrinth project page is in Resources.