mojira.dev
MC-11058

Ä, Ö,Ü don't get recogniced by commandblock in @p[teams=<teamname>]

When using the specifier teams=<teamname> the commandblock did not recognice the letter Ä, Ö, Ü...
I hope I was not just being stupid....

Linked issues

Comments 6

Could you upload an image please?
P.S. The command block is configured to work with alpha-numeric characters This isn't really a bug.

Umm.. ÄÖÜ are alpha-numeric characters 😛 Am I missing something?

Fix
Tested on some variant of 1.5. Basically, add the flag 'UNICODE_CHARACTER_CLASS' to the pattern compiling as below:

PlayerSelector

//private static final Pattern field_82389_a = Pattern.compile("^@([parf])(?:\\[([\\w=,!-]*)\\])?$");
    //private static final Pattern field_82387_b = Pattern.compile("\\G([-!]?\\w*)(?:$|,)");
    //private static final Pattern field_82388_c = Pattern.compile("\\G(\\w+)=([-!]?\\w*)(?:$|,)");
    private static final Pattern field_82389_a = Pattern.compile("^@([parf])(?:\\[([\\w=,!-]*)\\])?$", Pattern.UNICODE_CHARACTER_CLASS);
    private static final Pattern field_82387_b = Pattern.compile("\\G([-!]?\\w*)(?:$|,)", Pattern.UNICODE_CHARACTER_CLASS);
    private static final Pattern field_82388_c = Pattern.compile("\\G(\\w+)=([-!]?\\w*)(?:$|,)", Pattern.UNICODE_CHARACTER_CLASS);

The problem is teams=team name. Not team=teamname

Is this still a concern in the current Minecraft version 1.8.1 Prerelease 3 / Launcher version 1.5.3 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

@unknown added a comment - 11/Jul/14 5:09 PM
If certain characters do not work, don't use them in your objective name.

same goes for teams

Alec Hanschin

(Unassigned)

Confirmed

command_block, scoreboard

Snapshot 13w10a, Minecraft 1.5.1, Minecraft 1.5.2, Snapshot 13w18c, Snapshot 13w19a

Retrieved