Add support for boss health bars.

Three different types of health bars are implemented behind a basic Strategy Pattern. A new per-arena setting, boss-health-bar, can be used to configure which one of the three types (if any) of health bar should be used for bosses in the given arena:

- `boss-bar` creates a boss bar at the top of the screen as if the players were fighting an ender dragon or a wither.
- `title` uses the Chapters/Titles API in Bukkit to display the health of the boss as a "subtitle" whenever it takes damage.
- `name` sets the entitiy's health along with an optional custom name above the entity's head.
This commit is contained in:
Andreas Troelsen
2018-06-22 00:00:05 +02:00
parent c4362474a1
commit 2aecea401d
12 changed files with 294 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ auto-start-timer: 0
start-delay-timer: 0
auto-ready: false
use-class-chests: false
boss-health-bar: boss-bar
display-waves-as-level: false
display-timer-as-level: false
use-scoreboards: true