Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-265778

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w42a
    • 23w41a
    • None
    • Confirmed
    • Commands
    • Important
    • Platform

      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.

            boq [Mojang] Bartosz Bok
            intsuc intsuc
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: