Show each player's health under their nametags

This commit is contained in:
Bradley Hilton 2019-04-13 17:05:09 -05:00
parent 93af93d5a0
commit 4ef621d7b4
2 changed files with 6 additions and 0 deletions

View File

@ -29,6 +29,11 @@ public class ScoreboardManager {
this.arena = arena;
scoreboard = Bukkit.getScoreboardManager().getNewScoreboard();
scoreboards = new HashMap<>();
if (arena.getSettings().getBoolean("show-health-under-name", true)) {
Objective health = this.scoreboard.registerNewObjective("health", "health", ChatColor.RED + "\u2764");
health.setDisplaySlot(DisplaySlot.BELOW_NAME);
}
}
/**

View File

@ -40,6 +40,7 @@ boss-health-bar: boss-bar
display-waves-as-level: false
display-timer-as-level: false
use-scoreboards: true
show-health-under-name: true
isolated-chat: false
global-join-announce: false
global-end-announce: false