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

targets in commands allow the + and . characters, and allow quoted values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.2, 20w51a, 1.21
    • None
    • Confirmed
    • (Unassigned)

      <targets> in commands allow for the + and . characters (- as well, but that's part of a UUID) and quoted values.
      The following commands/values are correct:

      /advancement grant ++++++ everything
      /execute if entity ...........
      /effect clear "spaces and more!"
      /data get entity "1-0-0-0-1" (this acts as an entity UUID)
      

      This is probably caused by just reading the next string (readString()) in Brigadier, which allows for both normal and quoted strings (readUnquotedString() and readStringUntil(char terminator)) where + and . are also allowed in isAllowedInUnquotedString().

            Unassigned Unassigned
            ErrorCraft ErrorCraft
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: