[MC-8958] @p does not work with command blocks when joining/leaving a team Created: 01/Feb/13  Updated: 29/Dec/17  Resolved: 19/May/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Snapshot 13w05b
Fix Version/s: None

Type: Bug
Reporter: Marshall Bolwes Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 3
Labels: /scoreboard, command_block, scoreboard, teams

Issue Links:
Duplicate
is duplicated by MC-9011 Scoreboard command join and leave tea... Resolved
is duplicated by MC-9149 13w05b Server @p argument for join te... Resolved
is duplicated by MC-9189 Command Block Renaming Issue Resolved
CHK:
Confirmation Status: Community Consensus
Game Mode: Creative

 Description   

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".



 Comments   
Comment by Tails [ 19/May/13 ]

Unable to reproduce in 13w19a, @p works just fine with leaving/joining a team.

Comment by Tails [ 18/Mar/13 ]

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.

Comment by Brandon Staab [ 18/Feb/13 ]

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.

Comment by Daniel [ 17/Feb/13 ]

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.

Comment by Jonathan Lundgren [ 15/Feb/13 ]

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.

Generated at Sun Jan 12 12:19:30 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.