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 + "❤");
}
Attachments
Comments 9
Bukkit/Spigot and their variants are not vanilla versions, and therefore Mojang can't help you with that.
That was good. But I do not want to exemplify a player having half health, just updating the server and the player dies. I've changed the damage to 0.1, but I do not want to.
I did not find the right one. Here is a duplicate: click
Mojang plz add fix, montilkadani has been trying everything they can to get this working properly and it's still persisting in 1.13+ 1.14+
The 1st player that joins after the server starts hearts won't display in tablist but every other player after has it and they(1st player that joined) have to re-join each time this happens
Invalid as this relates to a modified client, sercer or laubcher.