From c7c27a7129ec7d0fb066cd776ae297ae799fcec1 Mon Sep 17 00:00:00 2001 From: Zrips Date: Tue, 14 Sep 2021 18:03:11 +0300 Subject: [PATCH] Fixing bossbar solid segmentation --- src/main/java/com/gamingmesh/jobs/config/BossBarManager.java | 5 ++++- src/main/java/com/gamingmesh/jobs/container/BossBarInfo.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/config/BossBarManager.java b/src/main/java/com/gamingmesh/jobs/config/BossBarManager.java index 08e404ec..bbf01bc5 100644 --- a/src/main/java/com/gamingmesh/jobs/config/BossBarManager.java +++ b/src/main/java/com/gamingmesh/jobs/config/BossBarManager.java @@ -100,6 +100,9 @@ public class BossBarManager { } BarStyle style; switch (Jobs.getGCManager().SegmentCount) { + case 1: + style = BarStyle.SOLID; + break; case 6: style = BarStyle.SEGMENTED_6; break; @@ -113,7 +116,7 @@ public class BossBarManager { style = BarStyle.SEGMENTED_20; break; default: - style = BarStyle.SEGMENTED_6; + style = BarStyle.SOLID; break; } bar = Bukkit.createBossBar(message, color, style); diff --git a/src/main/java/com/gamingmesh/jobs/container/BossBarInfo.java b/src/main/java/com/gamingmesh/jobs/container/BossBarInfo.java index 6cf404a0..e7ba1994 100644 --- a/src/main/java/com/gamingmesh/jobs/container/BossBarInfo.java +++ b/src/main/java/com/gamingmesh/jobs/container/BossBarInfo.java @@ -4,7 +4,7 @@ import org.bukkit.Bukkit; import org.bukkit.boss.BossBar; public class BossBarInfo { - private String jobName; + private String jobName; private String PlayerName; private BossBar bar; private int id = -1;