Mineuniverse
Mods
DisableCommand

DisableCommand

MOD
Disable any command via config file or in‑game gamerule – with multilingual feedback. Lightweight.
by laowowo
Download Claim this project
86 downloads
0 likes
Updated Oct 14, 2026
0 hypes
Server Utility Technology Utility & QoL
Advertisement Remove ads with Premium →

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.

disablecommand-1.0.jar
MC 1.21.2-Snapshot, 1.21.6-snapshot, Client, 1.21.1-Snapshot, 1.21.8, 1.21.5, 1.21.4, 1.21.5-Snapshot, 1.21.1, 1.21.6, 1.21.3, 1.21.7, NeoForge, Server, 1.21.4-Snapshot, 1.21.2
Release 2026-07-19 Get

More from laowowo

Advertisement Remove ads with Premium →

You Might Also Like