SteamWar/FightSystem
Archiviert
13
1

Fix mapdisplay
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-10-24 15:51:15 +02:00
Ursprung d4590b5ca8
Commit 15e425ac65
2 geänderte Dateien mit 7 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -191,8 +191,11 @@ public class BountifulWrapper9 implements BountifulWrapper.IBountifulWrapper {
public void sendBar(Player player, FightTeam team, double progress, String text) { public void sendBar(Player player, FightTeam team, double progress, String text) {
barMap.keySet().removeIf(p -> !p.isOnline()); barMap.keySet().removeIf(p -> !p.isOnline());
if(!barMap.containsKey(player)) if(!barMap.containsKey(player)) {
barMap.put(player, Bukkit.createBossBar(player.getName(), BarColor.WHITE, BarStyle.SOLID)); BossBar bar = Bukkit.createBossBar(player.getName(), BarColor.WHITE, BarStyle.SOLID);
barMap.put(player, bar);
bar.addPlayer(player);
}
BossBar bar = barMap.get(player); BossBar bar = barMap.get(player);
BarColor color = chat2bar(team.getColor()); BarColor color = chat2bar(team.getColor());

Datei anzeigen

@ -164,8 +164,8 @@ public class FightUI {
private final double maxAngle; private final double maxAngle;
private final FightTeam team; private final FightTeam team;
private double progress; private double progress = 0.5;
private Message text; private Message text = new Message("OLD_STRING", "§7");
BossBarType(FightTeam team, double minAngle, double maxAngle) { BossBarType(FightTeam team, double minAngle, double maxAngle) {
this.team = team; this.team = team;