Back to mods
Command Safety project artwork

Modrinth · Minecraft mod

Command Safety

Warns the player when running potentially dangerous commands ('/kill @e' etc).

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

Quick answer

Which Command Safety release should I use?

Updated 4 months ago
Latest stable file fabric-1.1.0+26.1
Game version 26.1, 26.1.1, 26.1.2
Loader Fabric, Quilt

Command Safety fabric-1.1.0+26.1 targets 26.1, 26.1.1, 26.1.2 with Fabric, Quilt. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is Command Safety required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

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

This file is marked server-only.

What else does Command Safety fabric-1.1.0+26.1 need?

fabric-1.1.0+26.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 Command Safety without breaking your instance.

Built for Command Safety fabric-1.1.0+26.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use fabric-1.1.0+26.1. It targets 26.1, 26.1.1, 26.1.2 with Fabric, Quilt; 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

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside fabric-1.1.0+26.1. It opens that exact file at the source.

About this project

What does Command Safety add?

Command Safety Mod

Have you ever accidentally killed all entities in your world with a single command? Or maybe you've cleared all the scores of a player when you didn't mean to?

This mod helps you avoid such mishaps, by requiring the player to confirm commands that have the potential to break a lot of things.

Very useful when working on large projects, especially when multiple people (that potentially have less experience with commands) are involved.


The commands & the conditions of when they require confirmation:

  • /fill, /clone
    • When selecting an area of more than 10 000 blocks.
  • /execute, /kill, /effect, /tp, /teleport, /give, /clear, /gamemode
    • When affecting more than 50 entities (players, ravagers, item frames).
    • When affecting more than 25 living entities (players, ravagers, ...).
    • When affecting more than 1 player.
  • /scoreboard
    • When affecting more than 50 score holders (players / entities).
    • When using the /scoreboard players reset .. command without selecting an objective.

Example


Config:

You can use the /confimcmd config command to change the limits of when commands require confirmation, or you can also modify the config files themselves (./config/confirmcommand.properties).

/confirmcmd

  • /confirmcmd config <name> - Gets the value of a config.
  • /confirmcmd config <name> <value> - Sets the value of a config.

Possible values for <name> are: max_blocks, max_players, max_living_entities, max_entities, max_score_holders

Project description from Modrinth.

Pick your setup

Command Safety by Minecraft version and loader

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

139 available setups

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

Command Safety versions and loaders

28 of 28 releases match

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