Mojira Archive
MC-265778

"gamerule maxCommandChainLength 0" prevents subsequent command execution in the world

The bug

Once you execute /gamerule maxCommandChainLength 0 in a world, you will never be able to execute commands in that world again unless you modify maxCommandChainLength directly using an external world editor.
While this behavior might be intentional and/or could sometimes be useful, there is also the risk that a typo or wrong arguments can easily cause commands to never be executed again in the current world. In particular, on a dedicated server, you cannot even terminate the server with /stop.

How to reproduce

  1. /gamerule maxCommandChainLength 0

    Gamerule maxCommandChainLength is now set to: 0

  2. /gamerule maxCommandChainLength 10000

    Command execution stopped due to limit (executed 0 commands)
    No more commands can be executed in this world.

Fixed

intsuc

[Mojang] Bartosz Bok

2023-10-12, 01:32 AM

2023-10-17, 02:17 PM

2023-10-17, 02:17 PM

5

5

Confirmed

Important

Platform

Commands

23w41a

23w42a