dontusecommant

dontusecommant

Mod

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

Client and server Utility

19 downloads
0 followers
Created5 months ago
Updated5 months ago

Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.

Introduction

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

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

Theoretically supports versions 1.18.2 to 1.20.1.

Usage

After entering the game, a file (DUC.json) will be automatically generated in the config folder as shown below:

  1. Open the file (you can use tools like Notepad). After opening, it will appear as shown below:

  2. Write down the commands you want to disable in the file, which can be multiple commands, but must follow JSON format. For example:

{ "black": { "command0": "tp", "command1": "game mode", "command2": "give" } }

  1. Restart the client for the changes to take effect.

Note: Each command is followed by a number (in sequence), without a slash ("/"), and separated by commas (","), except for the last command, as in the example above with "command2": "give".

Remarks

If you have a large server, you can use LuckPerms; this mod is not suitable for server use. If you don't want to disable commands individually, you can use No Cheat (this mod allows disabling all commands).

Please note that this mod supports fewer versions due to my use of MCR as my environment (definitely not due to laziness). Server authors can change the display name of this mod to "[Dependency]xxx (Do Not Delete)".


Project members

canyuesama

Owner


Technical information

License
AFL-3.0
Client side
required
Server side
required
Project ID