Updated:

Broadcast admin commands game rule (log_admin_commands)

The "Broadcast admin commands" rule is called log_admin_commands in Java 1.21.11 and later, and logAdminCommands in 1.21.10 and earlier. Controls whether commands run by operators are written to the server log.

Basic data

NameBroadcast admin commands
Rule name (Java 1.21.11+)log_admin_commands
Old name (Java 1.21.10 and earlier)logAdminCommands
Bedrock nameNo rule with the same name
Value typetrue / false
Defaulttrue

Commands you can copy

Turn off (false)

/gamerule log_admin_commands false

Reset to the default (true)

/gamerule log_admin_commands true

Check the current value

/gamerule log_admin_commands

Java 1.21.10 and earlier

/gamerule logAdminCommands false

Notes

Questions

Typing logAdminCommands gives an error

In Java 1.21.11 and later the rule is called log_admin_commands. Write /gamerule log_admin_commands … instead. Worlds on 1.21.10 and earlier keep the old name.

How do I check the current value?

Run /gamerule log_admin_commands without a value. The current value is shown in chat.

Other game rules