diff --git a/changelog.md b/changelog.md index 2591ae7..476e1e1 100644 --- a/changelog.md +++ b/changelog.md @@ -27,6 +27,7 @@ These changes will (most likely) be included in the next version. - Pillagers and vindicators no longer spawn without their much-needed weapons. - Piglins, piglin brutes, and hoglins no longer zombify. This fixes a bug where the mobs would despawn due to the zombification process. - Reward groups with `nothing` in them no longer cause errors when earned/granted. +- The title-based announcer and the title-based boss health bar have been fixed to work with the breaking change to the Title API in Spigot 1.17. ## [0.106] - 2021-05-09 ### Added diff --git a/src/main/java/com/garbagemule/MobArena/announce/TitleAnnouncer.java b/src/main/java/com/garbagemule/MobArena/announce/TitleAnnouncer.java index bd41c57..6cf4e2c 100644 --- a/src/main/java/com/garbagemule/MobArena/announce/TitleAnnouncer.java +++ b/src/main/java/com/garbagemule/MobArena/announce/TitleAnnouncer.java @@ -16,7 +16,7 @@ public class TitleAnnouncer implements Announcer { @Override public void announce(Player player, String message) { - player.sendTitle("", message, fadeIn, stay, fadeOut); + player.sendTitle(" ", message, fadeIn, stay, fadeOut); } } diff --git a/src/main/java/com/garbagemule/MobArena/healthbar/TitleHealthBar.java b/src/main/java/com/garbagemule/MobArena/healthbar/TitleHealthBar.java index 7bdf991..5bcf45a 100644 --- a/src/main/java/com/garbagemule/MobArena/healthbar/TitleHealthBar.java +++ b/src/main/java/com/garbagemule/MobArena/healthbar/TitleHealthBar.java @@ -27,7 +27,7 @@ class TitleHealthBar implements HealthBar { String message = title.isEmpty() ? health : title + " " + health; players.forEach(player -> player.sendTitle( - "", + " ", message, FADE_IN_TICKS, STAY_TICKS,