When i made a command block to join/leave a team, the command block didn't translate @p to the nearest player. When i typed /scoreboard teams list (theteamthatiputinthecommandblock) , it returned "@p".
Related issues
is duplicated by
Comments


Same here. I'm making a map and I solved by using scoreboard teams join @a[ location,r=1 ] This way you can only select 1 guy and still working.

note: a command such as"/scoreboard teams join Redstone @r[0,34,0,11,team=]" will add all plays not on a team to team redstone. However if there are no people left that are't on a team. the player "@r[0,34,0,11,team=]" will be added to that team (if you look in the nbt file) and on a multiplayer server it will disconnect all players and disallow anyone to join the server until you type"/scoreboard teams empty Redstone" to clear out the player, then everything works fine once again. I'm not sure if these to bugs are tied together but it seems like they are.

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

Unable to reproduce in 13w19a, @p works just fine with leaving/joining a team.
There is definitely something not working about using @p in /scoreboard teams join. It works for me, but sometimes I have to activate the command block twice (though this might be an error in my redstone wirings). However, I can confirm it does NOT work if you add arguments after @p.