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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.16.2, 20w51a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      <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().

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              CHK: