log_admin_commands
booleanJava 26.2 onlyControls whether commands run by server operators are written to the server log. When false, OP commands are not recorded — useful for privacy on servers where staff activity should not be publicly auditable.
Enable log_admin_commands
Commands run by OPs are recorded in the server console and log file.
Java
/gamerule log_admin_commands trueDisable log_admin_commands
OP commands are not logged. Only non-command activity appears in the log.
Java
/gamerule log_admin_commands falseDefault: true. Restore with /gamerule log_admin_commands true
What log_admin_commands does
Controls whether commands run by server operators are written to the server log. When false, OP commands are not recorded — useful for privacy on servers where staff activity should not be publicly auditable.
log_admin_commands is a Java Edition-only gamerule and is not available in Bedrock.