Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-18713

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

    XMLWordPrintable

    Details

    • Confirmation Status:
      Unconfirmed
    • Game Mode:
      Creative

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              dinnerbone [Mojang] Nathan Adams
              Reporter:
              needagoodusername NeedAGoodUsername
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: