Back to mods
DontUseCommand project artwork

Modrinth · Minecraft mod

DontUseCommand

designed to prevent players from using command events by modifying the configuration file.

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

Quick answer

Which DontUseCommand release should I use?

Updated 2 years ago
beta file 1.0.1
Game version 1.17, 1.17.1, 1.18
Loader Forge

DontUseCommand 1.0.1 targets 1.17, 1.17.1, 1.18 with Forge. Installation on the client is optional. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

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

Installation on the client is optional. Installation on the dedicated server is optional.

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

The source marks this as usable on both the client and server.

What else does DontUseCommand 1.0.1 need?

1.0.1. Change the file and its required mods may change too.

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 DontUseCommand without breaking your instance.

Built for DontUseCommand 1.0.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.1. It targets 1.17, 1.17.1, 1.18 with Forge; 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

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.1. It opens that exact file at the source.

About this project

What does DontUseCommand add?

Introduction

This is a small mod consisting of just three Java files (core events) designed to prevent players from using command events by modifying the configuration file. It is intended for use by integrated pack authors who do not want players to cheat.

Once this mod is installed, disabled commands cannot be used regardless of the player's game mode, and even server OP players cannot use them. However, if installed on a server, disabled commands can still be used through the command console.

Theoretically, it supports versions 1.13.x to 1.21.x. NeoForge is not supported

Usage

After entering the game, a file called "DUC.txt" will be automatically generated in the config folder, as shown in the image below:

Write down the command you want to disable in the file, which can be multiple commands without adding "/". For example:

tp

summon minecraft:zombie

gamemode creative

Tip: Line breaks are sufficient for each instruction, and sub instructions can be added, such as "gamemode creative", which will not disable other sub instructions such as "gamemode survival"

Restart your client or server, or use the/reload command to take effect.

Additional Information

If you have a large server, you can use LuckPerms instead. This mod is not suitable for server use. If you do not want to individually disable commands, you can use the "No Cheat" mod, which allows disabling all commands.

ModPack authors can change the mod's display name to "[Dependency]xxx (Do Not Delete)".

Project description from Modrinth.

Pick your setup

DontUseCommand by Minecraft version and loader

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

36 available setups

Showing the newest 12 of 36 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

DontUseCommand versions and loaders

4 of 4 releases match

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