mojira.dev
MC-122780

Admin commands executed by command blocks are no longer logged when the gamerule logAdminCommands is set to true unless the gamerule commandBlockOutput is also set to true

Admin commands executed by command blocks are not logged when the gamerule logAdminCommands is set to true unless the gamerule commandBlockOutput is also set to true.
In 1.12 these two gamerules had nothing to do with each other. With logAdminCommands set to true all commands were logged in the log file and with commandBlockOutput all commands were logged in the game chat.
Now it does not seem to be possible to log commands without spamming the in game chat.
We need this because we listen to changes in the minecraft log file in order to trigger an external program from within minecraft: https://github.com/Energyxxer/Vanilla-Injection

Linked issues

Comments 6

The logs are logging chat activity, not every single action.
If you do /gamerule sendCommandFeedback false, then you won't get logs from commands executed by a player aswell.

Good hint, that way I can achieve what I wanted. I'll still leave this ticket, because I am not sure if this change was intended.

At least in 18w03a it looks like command blocks can no longer execute admin commands.

I don't think he was referring only to admin server commands, but rather all commands that require permissions.

I am fine with this being closed as works as intended, but closing this as invalid is definitely incorrect. This ticket does not refer to server administration commands, but to commands wich require admin/op privileges.

I am sorry. The gamerule name is rather misleading since it looks like at least in 1.12.2 it logs any command feedback, regardless which op permission level it requires. This apparently includes /trigger as well therefore.

Adrodoc55

(Unassigned)

Confirmed

(Unassigned)

Minecraft 17w48a, Minecraft 1.13.2, 1.15.2

Retrieved