Show each player's health under their nametags
This commit is contained in:
parent
93af93d5a0
commit
4ef621d7b4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue