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) {
|
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());
|
||||||
|
@ -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;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren