Whilst on my server today, I noticed a new bug with command blocks.
When I run this command in a command block:
/scoreboard players remove @a@unknown points 25000
And click a button to run it, my game will crash, with the error message in the included picture.
Each time I tried to reconnect to my server, the error message would appear, and I would be disconnected. I decided to delete my scoreboard.dat in my world folder, and it fixed the problem, however, when attempting to do it again, my game will crash again.
Steps to Reproduce:
Create a new multiplayer server running either 14w03b or 14w04b.
Create a new scoreboard objective named "points".
"/scoreboard objectives add points dummy Points"
Add yourself to objective points.
"/scoreboard players add <username> points 25000"
Give yourself a command block.
"/give <username> minecraft:command_block 1"
Enter this command into the command block:
"/scoreboard players remove @a@unknown points 25000"
Power the command block.
Linked issues
is duplicated by 1
Attachments
Comments 13
It effects both maps generated in 1.7.2 and 14w03b, at least from my testing.
However, it may be important to note, that when done on singleplayer, the game will take the score away from a player named "@a@unknown" without problem, while on a server, where I originally found this problem, it will crash the game and display the message from the original attachment.
Is it possible that when using relative coordinates, Minecraft assumes that it is a player username instead of arguments for the @a locator?
According to your
[media], the server adds scores to a player named @a@unknown as well. However, the maximum allowed player name length is 16, so the server kicks the client.
Mind explaining a bit further about what you said, Serdar?
How exactly does redstone dust affect commands?
Is this still an issue in 14w08a ? (Retry with a new created world, since your scoreboard.dat is already borked)
Yes, however, this no longer crashes the game. Instead, Minecraft removes the points from a player named "@a@unknown", in place of using relative coordinates to find a player.
As seen from the screenshot, I stood in the area where the Command Block SHOULD have searched for a player via relative commands, however, the game removed the points from a player named "@a@unknown".
Whilst working through my command blocks to find the command which caused the issue, I found that I had used the wrong command when making this report.
This is the command that caused the problem:
/scoreboard players remove @a@unknown points 25000
I will edit the original post to reflect that.
Also, here is a portion of the server output, which may help in solving the issue:
19.01 13:30:53 [Server] INFO [13:30:53] [Server thread/INFO]: Takomari left the game
19.01 13:30:53 [Disconnect] User [13:30:53] [Server thread/INFO]: Takomari has disconnected, reason: TextComponent{text='Disconnected', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
19.01 13:30:53 [Server] INFO [13:30:53] [Server thread/INFO]: [@: Set score of points for player @a@unknown to -25000]