mojira.dev
MC-198091

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

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

Comments 2

This does not seem to be the case for scoreboard players.

Can confirm in 20w51a.

ErrorCraft

(Unassigned)

Confirmed

(Unassigned)

1.16.2, 20w51a, 1.21

Retrieved