promotional bannermobile promotional banner

DONTUSECOMMAND

designed to prevent players from using command events by modifying the configuration file.
canyuesama | DONTUSECOMMAND
Create a server, get 25% off your first monthaffiliate logo
Create Server
affiliate banner image

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

 undefined

The DONTUSECOMMAND Team

profile avatar
  • 4
    Followers
  • 13
    Projects
  • 488.5K
    Downloads

More from canyuesamaView all

  • Rhenium project image

    Rhenium

    • 190.8K
    • Mods

    This is a memory optimization mod

    • 190.8K
    • April 17, 2026
    • Mods
    • +1
  • YoukaisHomeComingCurios project image

    YoukaisHomeComingCurios

    • 79.7K
    • Mods

    Enable YoukaisHomeComing's headband to be worn in the curios section

    • 79.7K
    • March 16, 2026
    • Mods
  • Ex Meteor Shower project image

    Ex Meteor Shower

    • 215.4K
    • Mods

    A mod randomly generates meteor showers during night in your worlds.

    • 215.4K
    • March 14, 2026
    • Mods
  • GetOutOfMyWay project image

    GetOutOfMyWay

    • 655
    • Mods

    Transparency blocks the players you achieve, allowing Tacz bullets to penetrate your teammates

    • 655
    • February 13, 2026
    • Mods
  • Rhenium project image

    Rhenium

    • 190.8K
    • Mods

    This is a memory optimization mod

    • 190.8K
    • April 17, 2026
    • Mods
    • +1
  • YoukaisHomeComingCurios project image

    YoukaisHomeComingCurios

    • 79.7K
    • Mods

    Enable YoukaisHomeComing's headband to be worn in the curios section

    • 79.7K
    • March 16, 2026
    • Mods
  • Ex Meteor Shower project image

    Ex Meteor Shower

    • 215.4K
    • Mods

    A mod randomly generates meteor showers during night in your worlds.

    • 215.4K
    • March 14, 2026
    • Mods
  • GetOutOfMyWay project image

    GetOutOfMyWay

    • 655
    • Mods

    Transparency blocks the players you achieve, allowing Tacz bullets to penetrate your teammates

    • 655
    • February 13, 2026
    • Mods