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

Live command parsing deals poorly with redundant spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 17w45b, Minecraft 17w46a, Minecraft 17w50a, Minecraft 18w02a, Minecraft 18w16a, Minecraft 1.13-pre3, Minecraft 1.13, Minecraft 18w30b, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w44a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed

      Description

      The bug

      If you enter something like /gamemode  survival (notice the double space, for the bugtracker one was replaced with  ), the preview predicts an error, but the command works.

      The exact error message can vary, sometimes it wants the next, sometimes the second next part. For example:

      • /gamemode  survival: No error message, just four lines with grey /gamemode and red gamemode names
      • /effect give  @p strength 100 100: "Invalid name or uuid at position 12: …fect give <--[HERE]" (So it apparently expects the next argument now, the selector.)
      • /effect give @p  strength 100 100: "Expected integer at position 16: … give @p <--[HERE]" (So it apparently expects the second next argument now, the duration. But if I entered the duration there, the command would fail when executing.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dinnerbone [Mojang] Nathan Adams
                Reporter:
                FaRo1 Fabian Röling
              • Votes:
                5 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: