Mojira Archive
MC-56246

name= selector does not function with names containing symbols

When using a selector with name=, if there is a mob with a custom name or username with a space or symbol in it, the player/mob is not able to be found by the selector.

(Note on players with spaces in username - yes there are players with spaces in their names, it is possible - i.e. [space]Bob, or a space before the username)

Test:
1.Summon entity with CustomName with a space/symbol in it.

/summon Pig ~ ~ ~ {CustomName:Bob Bob,CustomNameVisible:1}
/summon Pig ~ ~ ~ {CustomName:/,CustomNameVisible:1}

2.Use a selector on entity.

/tp @e[name=Bob Bob] ~ ~5 ~
/tp @e[name=/] ~ ~5 ~

3.Errors:
First command: '@e[name=Bob' is not a valid number – Thinks it is a coordinate value
Second command: The entity UUID provided is in an invalid format

Duplicate

Onnowhere

2014-06-02, 08:02 AM

2017-05-09, 11:52 PM

2014-06-02, 10:13 PM

0

1

Unconfirmed

Minecraft 14w20b, Minecraft 14w21a, Minecraft 14w21b

-