Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
d4590b5ca8
Commit
15e425ac65
@ -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());
|
||||
|
@ -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;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren