Back to mods
DisableCommand project artwork

Modrinth · Minecraft mod

DisableCommand

Disable any command via config file or in‑game gamerule – with multilingual feedback. Lightweight.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which DisableCommand release matches 1.21.9 NeoForge?

Updated 4 months ago
Best match for your filters 1.0
Game version 1.21.1, 1.21.10, 1.21.11
Loader 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.

Client Not supported
Dedicated server Required
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does DisableCommand 1.0 need?

1.0 on 1.21.9 NeoForge. Every mod below is checked against that same setup.

No extra mods listed for this file

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.9 NeoForge. Pick another file and the loader, install side or required mods may change.

  1. 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.

  2. 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.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 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 false to temporarily disable the blocker (useful for maintenance or troubleshooting).
  • Server‑side only – install it on your NeoForge server; clients don’t need anything.

🎮 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.

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.

11 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

DisableCommand versions and loaders

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.