DisableCommand
Running a Minecraft server often means juggling player requests, grief prevention, and the occasional rogue command that wreaks havoc on your world. You might have tried permission plugins, but they can be clunky, confusing, and overkill for a simple task like blocking /kill or /gamemode. That is where DisableCommand steps in. This lightweight NeoForge mod gives you surgical control over which commands players can run, all without forcing your players to install anything on their own clients.
What Makes DisableCommand Different?
Unlike sprawling plugin suites, DisableCommand does one thing and does it exceptionally well. It is a server-side only mod, meaning you drop it into your server's mods folder, and you are done. No client-side installations, no version mismatches between players, and no performance overhead. It simply intercepts command attempts and blocks them based on a configurable list you control.
This mod is perfect for both dedicated servers and single-player integrated servers. If you are testing a modpack or just want to lock down your own world, the same functionality applies. The mod works with Minecraft 1.21.1 and requires NeoForge 21.11.44 or later. It has no other dependencies, so it plays nicely with your existing setup.
Core Features of DisableCommand
Configurable Ban List
The heart of DisableCommand is its simple, text-based configuration file. After you first start your server with the mod installed, it generates a file at config/disablecommand-common.toml. Inside, you will find a list called disabledCommands. You simply add the command prefixes you want to block, without the leading slash. For example:
[commands]
disabledCommands = ["tp::s", "gamemode creative::e", "kill::e"]
This uses prefix matching, so adding "gamemode" will block /gamemode creative, /gamemode survival, and any other variation. This is far more flexible than blocking exact strings, giving you broad control with minimal setup.
In-Game Toggle with a Gamerule
There will be times when you need to temporarily allow those blocked commands. Maybe you are troubleshooting a build, or you need to teleport a stuck player. Instead of editing the config file and restarting, you can use the built-in gamerule. Running /gamerule disableCommandEnabled false instantly disables the blocker, letting all commands through. Flip it back to true when you are done. This is a lifesaver for maintenance windows and quick fixes.
How to Install DisableCommand
Getting started is straightforward. First, make sure your server is running NeoForge 21.11.44 or later. Then, follow these steps:
- Download the DisableCommand jar file from the official source or a trusted mod repository.
- Place the jar file into your server's
modsfolder. - Start the server. The mod will generate the default config file.
- Stop the server, edit
config/disablecommand-common.tomlwith your desired blocked commands, and save. - Restart the server, or use a reload command if your setup supports it. Changes apply immediately.
That is it. You do not need to tell your players to download anything. The mod works entirely on the server side, so your players can connect with vanilla clients or any other modded setup they prefer.
If you are looking for a hassle-free way to manage your mods, consider using the foxygame.net launcher. Its integrated add-on catalog lets you find and install DisableCommand for Minecraft with a single click, and it handles version compatibility checks automatically, so you never have to worry about mismatched NeoForge versions.
Practical Use Cases
- Anti-Griefing: Block
/killand/gamemodeto prevent players from ruining each other's progress. - Server Stability: Disable resource-intensive commands like
/fillor/clonethat can cause lag spikes. - Roleplay Servers: Restrict teleportation and time commands to keep the experience immersive.
- Testing: When debugging a modpack, temporarily disable commands that might interfere with your tests.
Configuration Tips
Remember that the matching is prefix-based. If you block "tp", you will also block /tpa, /tpahere, and any other command starting with those letters. Be specific if you want to allow certain variations. You can always test your config by running the commands yourself in-game. The foxygame.net launcher also keeps DisableCommand up to date automatically, so you will always have the latest bug fixes and compatibility patches without manual downloads.
Final Thoughts
DisableCommand is a focused, efficient tool that solves a common server administration headache. Its lightweight nature, combined with the in-game gamerule toggle, makes it a must-have for any NeoForge server owner. Whether you are running a small private server with friends or a large public community, having this level of control over commands is invaluable. Download DisableCommand today and take the first step toward a more stable, enjoyable server environment.