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

Incorrect string command arguments parsing (Brigadier)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w08b, Minecraft 19w09a, 21w07a
    • None
    • Confirmed
    • (Unassigned)

      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.

            Unassigned Unassigned
            new_sashok724 sashok724
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: