DisableCommand

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

Редакция NLZONE · 1 мин чтения · 0 просмотров
DisableCommand
Скачать DisableCommand1.21.1 – 1.21.9 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

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

  • Тип: мод
  • Загрузчик: neoforge
  • Версии Minecraft: 1.21.1 – 1.21.9
  • Скачиваний на Modrinth: 919

Подробно

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.

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

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.

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также