mojira.dev
MC-48563

/tellraw "score" Function in Multiplayer Displays Last-Loaded Singleplayer Score

Attempting to use the new "score" function in the /tellraw command:

/tellraw @p {text:"Have ",extra:[{score:{name:"Searge",objective:"reward"}},{text:" diamonds"}]}

If the scoreboard is created in singleplayer and scores are set, they will display properly. However, if you switch to a new multiplayer world that does not have any of the required objectives or scores, and run the above command, you will still see the scores coming from players via the last-loaded singleplayer world.

Attempting to create your own objectives and displaying them using the command above in multiplayer does not work either. If the last-loaded singleplayer world doesn't have the specified objectives, then the output is merely "?".

Linked issues

Comments 6

Confirmed for 14w07a

Can confirm, using 14w07a.

Confirmed for 14w11b

I'm afraid this also happens to non-real players.
If you were to create a non-real player and run a command similar to that, it will output 0.

In some cases with my testing it outputs 4 or 7, or random numbers, sometimes a ?. This leads me to assume its related to the last single player user to be on. Not sure however.

Confirmed for 14w20b

Apologies for the version change (just took a peek, clicking off saves it). I can confirm it's fixed in at least 14w28b, unless somebody else can still reproduce it.

Skylinerw

michael

Community Consensus

Minecraft 14w07a, Minecraft 14w08a, Minecraft 14w11b, Minecraft 14w20b

Minecraft 14w28b

Retrieved