SteamWar/FightSystem
Archiviert
13
1

Multiling (nur Multling) #294

Zusammengeführt
Lixfel hat 10 Commits von multiling nach master 2021-10-24 19:38:35 +02:00 zusammengeführt
2 geänderte Dateien mit 7 neuen und 4 gelöschten Zeilen
Nur Änderungen aus Commit 15e425ac65 werden angezeigt - Alle Commits anzeigen

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;