diff --git a/src/main/java/de/fanta/challenges/challenges/ChallengeEvents/SammelFieberChallengeEvent.java b/src/main/java/de/fanta/challenges/challenges/ChallengeEvents/SammelFieberChallengeEvent.java index 569827c..1b13c88 100644 --- a/src/main/java/de/fanta/challenges/challenges/ChallengeEvents/SammelFieberChallengeEvent.java +++ b/src/main/java/de/fanta/challenges/challenges/ChallengeEvents/SammelFieberChallengeEvent.java @@ -89,7 +89,7 @@ } else { for (ChallengeTeam team : TeamUtils.getTeams()) { plugin.getScoreManager().join(team); - BossBar teamBar = Bukkit.createBossBar(ChatUtil.GREEN + "Dein Team hat " + ChatUtil.BLUE + plugin.getScoreManager().getScore(team) + " " + new ItemStack(getMaterial()).getI18NDisplayName() + ChatUtil.GREEN + " abgegeben." + ChatUtil.RED + " | " + ChatUtil.GREEN + "Platz: " + plugin.getScoreManager().getPosition(team), BarColor.GREEN, BarStyle.SOLID); + BossBar teamBar = Bukkit.createBossBar(ChatUtil.GREEN + "Dein Team hat " + ChatUtil.BLUE + plugin.getScoreManager().getScore(team) + " " + new ItemStack(getMaterial()).getI18NDisplayName() + ChatUtil.GREEN + " abgegeben." + ChatUtil.RED + " | " + ChatUtil.GREEN + "Platz: " + plugin.getScoreManager().getPosition(team), BarColor.GREEN, BarStyle.SOLID); teamBar.setVisible(true); bossBarList.put(team, teamBar); for (OfflinePlayer offlinePlayer : TeamUtils.getPlayersInTeam(team)) @@ -152,7 +152,7 @@ for (ChallengeTeam tempTema : TeamUtils.getTeams()) { BossBar teamBar = bossBarList.get(tempTema); - teamBar.setTitle(ChatUtil.GREEN + "Dein Team hat " + ChatUtil.BLUE + plugin.getScoreManager().getScore(tempTema) + " " + new ItemStack(getMaterial()).getI18NDisplayName() + ChatUtil.GREEN + " abgegeben." + ChatUtil.RED + " | " + ChatUtil.GREEN + "Platz: " + plugin.getScoreManager().getPosition(tempTema)); + teamBar.setTitle(ChatUtil.GREEN + "Dein Team hat " + ChatUtil.BLUE + plugin.getScoreManager().getScore(tempTema) + " " + new ItemStack(getMaterial()).getI18NDisplayName() + ChatUtil.GREEN + " abgegeben." + ChatUtil.RED + " | " + ChatUtil.GREEN + "Platz: " + plugin.getScoreManager().getPosition(tempTema)); } } } @@ -257,10 +257,9 @@ if (bossBarList.containsKey(team)) { bossBarList.get(team).addPlayer(e.getPlayer()); } else { - BossBar teamBar = Bukkit.createBossBar(ChatUtil.GREEN + "Dein Team hat " + ChatUtil.BLUE + plugin.getScoreManager().getScore(team) + " " + new ItemStack(getMaterial()).getI18NDisplayName() + ChatUtil.GREEN + " abgegeben." + ChatUtil.RED + " | " + ChatUtil.GREEN + "Platz: " + plugin.getScoreManager().getPosition(team), BarColor.GREEN, BarStyle.SOLID); + BossBar teamBar = Bukkit.createBossBar(ChatUtil.GREEN + "Dein Team hat " + ChatUtil.BLUE + plugin.getScoreManager().getScore(team) + " " + new ItemStack(getMaterial()).getI18NDisplayName() + ChatUtil.GREEN + " abgegeben." + ChatUtil.RED + " | " + ChatUtil.GREEN + "Platz: " + plugin.getScoreManager().getPosition(team), BarColor.GREEN, BarStyle.SOLID); teamBar.setVisible(true); bossBarList.put(team, teamBar); - teamBar.addPlayer(e.getPlayer()); } }