[MC-9391] Command Block Arguments Length Created: 08/Feb/13  Updated: 18/Feb/13  Resolved: 18/Feb/13

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

Type: Bug
Reporter: Adam Assignee: [Mojang] Nathan Adams
Resolution: Fixed Votes: 2
Labels: crash, multiplayer
Environment:

Windows 8 Server


Attachments: PNG File 2013-02-07_21.59.12.png    
Issue Links:
Duplicate
is duplicated by MC-9400 Server crashes when attempting to cha... Resolved
Relates
relates to MC-8790 Scoreboard Teams function does not ac... Resolved
Confirmation Status: Unconfirmed
Game Mode: Creative

 Description   

I created the team 'lobby' for a game I am making.
I typed in this command in a command block:
/scoreboard teams join lobby @p[-1103,52,450,2]
I expected this command to add a person who is at the coordinates -1103 52 450 and in a range of 2 to the team lobby.
I activated this command block and the server kicked everybody on it.
The screenshot attached shows what showed up on everybody's screen when we were kicked.
We then could not join and that screen kept on showing up every time we tried to join the server.
I looked in the server log and it added "@p[-1103,52,450,2]" to the team lobby.
I deleted the scoreboard.dat and we could join again.
I ran the command block again and the same thing happened.
I then tried with the command:
/scoreboard teams join lobby @p[-1103,52,450]
This time it added the person closest to those coordinates as I expected.
This seems to occur every time the @p and all its arguments total up to more than 16 characters and there is no person at the specified location and other then that, it works as intended.
Even using:
@p[x=-1103,y=52,z=450,r=2] does not work it only increases the number on the screen when we get kicked from 18 to 26.
The same happens with:
/scoreboard teams join lobby @a[c=1,x=-1103,y=52,z=450,r=2]



 Comments   
Comment by Kevin B. [ 15/Feb/13 ]

The error itself is caused because the command adds "@p[x=-1103,y=52,z=450,r=2]" to the player-list of the team and interprets it as a player.
but since a player's name is only allowed to have at most 16 characters, it outputs an error.

Comment by Joseph McKeown [ 08/Feb/13 ]

Yea, i have the same problem. It sucks

Comment by George Stichel [ 08/Feb/13 ]

not the same but another way
/scoreboard teams join lobby @a[c=1x=-1103,y=52,z=450,r=2]

Comment by George Stichel [ 08/Feb/13 ]

try to use:
@p[x=-1103,y=52,z=450,r=2]

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