-
Bug
-
Resolution: Invalid
-
None
-
Minecraft 1.12.2
-
Windows 7, Java 8
-
Unconfirmed
The problem is that when a player is available on the server and the server owner is just switching on the health tab, he reloads, but there are players on the server and players do not show the taboos beside their name the health level just a blank space. It only appears when the player re-connects to the server, but I do not want that.
Here is the code:
Scoreboard board = pl.getScoreboard(); Objective objective = board.getObjective("showhealth"); if (objective == null) { objective = board.registerNewObjective("showhealth", "health"); objective.setDisplaySlot(DisplaySlot.PLAYER_LIST); objective.setDisplayName(ChatColor.RED + "❤"); }