Mojira Archive
MC-18713

If a team name has "-" in it, the argument for seeing if anyone is in the team doesn't work

I've found that, with scoreboard teams, if the team has a dash ("-") in their team name, then the team argument for command blocks won't work to see if anyone is in the team.

To recreate:
1) Make a new creative world in single player.
2) Give yourself 4 command blocks
3) Add these commands:

  • say @p[team=Foo]
  • say @p[team=!Foo]
  • say @p[team=Foo-bar]
  • say @p[team!=Foo-bar]

4) The expected results are:

  • Says nothing
  • Says your name
  • Should say nothing, but says your name
  • Says your name

Fixed

NeedAGoodUsername

[Mojang] Nathan Adams

2013-06-22, 01:57 AM

2017-12-30, 12:13 AM

2013-06-25, 01:46 PM

0

1

Unconfirmed

command, command_block, scoreboard, team, teams

Minecraft 1.5.2

Minecraft 1.6