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

Incorrect string command arguments parsing (Brigadier)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w08b, Minecraft 19w09a, 21w07a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      String argument type in Brigadier doesn't parse correctly if it's of string type SINGLE_WORD or QUOTABLE_PHRASE without quotes. It reads only a-z, 0-9 and some other basic ASCII characters.

      Because of this, for example, I can't use Russian usernames (custom launcher) in commands without quoting, although minecraft works with them perfectly fine. In other Minecraft versions (1.12.2 or older) it works as it should.

      Proposed fix: Read unquoted strings in StringReader class until first space, not until first 'not allowed' character.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              new_sashok724 sashok724
              Votes:
              3 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: