Back to mods
DisableCommand project artwork

CurseForge · 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.11 NeoForge?

Updated last month
Best match for your filters disablecommand-1.0.jar
Game version 1.21.2-Snapshot, 1.21.6-snapshot, 1.21.1-Snapshot
Loader NeoForge

disablecommand-1.0.jar targets 1.21.2-Snapshot, 1.21.6-snapshot, 1.21.1-Snapshot with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is DisableCommand required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
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

The source does not explicitly classify this release as client-only or server-only.

What else does disablecommand-1.0.jar need?

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

  1. 01

    Stick to this file

    Use disablecommand-1.0.jar. It targets 1.21.2-Snapshot, 1.21.6-snapshot, 1.21.1-Snapshot 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

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside disablecommand-1.0.jar. 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: ```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 CurseForge.

Pick your setup

DisableCommand by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

18 available setups

Showing the newest 12 of 18 game versions. Older files are in the list below.

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 CurseForge project page is in Resources.