Explicitly set a display name for the scoreboard objective.

Omitting the display name is deprecated.

Partial fix for #406
This commit is contained in:
Andreas Troelsen 2019-07-22 00:07:48 +02:00
parent fa2016acb5
commit 0fa11eb84f
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public class ScoreboardManager {
if (kills != null) {
kills.unregister();
}
kills = scoreboard.registerNewObjective("kills", "ma-kills");
kills = scoreboard.registerNewObjective("kills", "ma-kills", "Kills");
kills.setDisplaySlot(DisplaySlot.SIDEBAR);
updateWave(0);
}