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

The team argument does not function correctly when directed at players NOT on two teams (Only selects the first)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 13w39b, Minecraft 1.7.4, Minecraft 1.8.3
    • Windows 7
      Java: Version 7 Update 7(build 1.7.0_07-b11)
    • Confirmed

      I wanted a command block argument that only outputs to players who where NOT on one particular team but also NOT on another so I applied:
      @p[team=!TeamName1,team=!TeamName2]
      but found that instead of working as I had intended it outputted successfully when I was on the first team listed in the argument and did not output when i was in the second.
      I can confirm that I was playing in singleplayer with no other players online.

      What I expected to happen was...:
      For no output to occur when I was on either of the two set out teams whilst outputting successfully when I was not.

      What actually happened was...:
      An output occurred when I was on the first team listed in the argument and when I was on neither of the two whilst there being no output when I was on the second team listed.

      Steps to Reproduce:
      1. Create team Red using /scoreboard teams add Red
      2. Create team Blue using /scoreboard teams add Blue
      3. Create a command block with:
      tell @p[team=!Red,team=!Blue] Hello
      and place a button on the command block.
      4.Test output when player is in no team by pressing button.
      5. Join team Red using:
      /scoreboard teams join Red
      and press button to test output for when player is in Red team.
      6. Join team Blue using:
      /scoreboard teams join Blue
      and press button to test output for when player is in Blue team.

            searge [Mojang] Searge (Michael Stoyke)
            Leo_Flare Leo Flare
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: