Hotfix KillcheckerVisualizer bossbar progress
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
4b4b623fee
Commit
65e425ebdb
@ -293,7 +293,7 @@ public class KillcheckerVisualizer {
|
|||||||
private void updateBossBar(Player player) {
|
private void updateBossBar(Player player) {
|
||||||
BauSystemBossbar bossbar = bossBarService.get(player, region, "killchecker");
|
BauSystemBossbar bossbar = bossBarService.get(player, region, "killchecker");
|
||||||
bossbar.setTitle(BauSystem.MESSAGE.parse("KILLCHECKER_BOSSBAR", player, kills, ((int) (percent * 1000) / 10.0), cannonCount));
|
bossbar.setTitle(BauSystem.MESSAGE.parse("KILLCHECKER_BOSSBAR", player, kills, ((int) (percent * 1000) / 10.0), cannonCount));
|
||||||
bossbar.setProgress(percent);
|
bossbar.setProgress(Math.min(Math.max(percent, 0), 1));
|
||||||
|
|
||||||
if (percent >= 0.35) {
|
if (percent >= 0.35) {
|
||||||
bossbar.setColor(BarColor.RED);
|
bossbar.setColor(BarColor.RED);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren