diff --git a/FightSystem_9/src/de/steamwar/fightsystem/utils/BountifulWrapper9.java b/FightSystem_9/src/de/steamwar/fightsystem/utils/BountifulWrapper9.java index dd88a34..a21a46c 100644 --- a/FightSystem_9/src/de/steamwar/fightsystem/utils/BountifulWrapper9.java +++ b/FightSystem_9/src/de/steamwar/fightsystem/utils/BountifulWrapper9.java @@ -191,8 +191,11 @@ public class BountifulWrapper9 implements BountifulWrapper.IBountifulWrapper { public void sendBar(Player player, FightTeam team, double progress, String text) { barMap.keySet().removeIf(p -> !p.isOnline()); - if(!barMap.containsKey(player)) - barMap.put(player, Bukkit.createBossBar(player.getName(), BarColor.WHITE, BarStyle.SOLID)); + if(!barMap.containsKey(player)) { + BossBar bar = Bukkit.createBossBar(player.getName(), BarColor.WHITE, BarStyle.SOLID); + barMap.put(player, bar); + bar.addPlayer(player); + } BossBar bar = barMap.get(player); BarColor color = chat2bar(team.getColor()); diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightUI.java b/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightUI.java index ccd1b12..d5ab97f 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightUI.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/utils/FightUI.java @@ -164,8 +164,8 @@ public class FightUI { private final double maxAngle; private final FightTeam team; - private double progress; - private Message text; + private double progress = 0.5; + private Message text = new Message("OLD_STRING", "ยง7"); BossBarType(FightTeam team, double minAngle, double maxAngle) { this.team = team;