mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-04 23:37:49 +01:00
Fixing bossbar solid segmentation
This commit is contained in:
parent
b9733e801d
commit
c7c27a7129
@ -100,6 +100,9 @@ public class BossBarManager {
|
|||||||
}
|
}
|
||||||
BarStyle style;
|
BarStyle style;
|
||||||
switch (Jobs.getGCManager().SegmentCount) {
|
switch (Jobs.getGCManager().SegmentCount) {
|
||||||
|
case 1:
|
||||||
|
style = BarStyle.SOLID;
|
||||||
|
break;
|
||||||
case 6:
|
case 6:
|
||||||
style = BarStyle.SEGMENTED_6;
|
style = BarStyle.SEGMENTED_6;
|
||||||
break;
|
break;
|
||||||
@ -113,7 +116,7 @@ public class BossBarManager {
|
|||||||
style = BarStyle.SEGMENTED_20;
|
style = BarStyle.SEGMENTED_20;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
style = BarStyle.SEGMENTED_6;
|
style = BarStyle.SOLID;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
bar = Bukkit.createBossBar(message, color, style);
|
bar = Bukkit.createBossBar(message, color, style);
|
||||||
|
@ -4,7 +4,7 @@ import org.bukkit.Bukkit;
|
|||||||
import org.bukkit.boss.BossBar;
|
import org.bukkit.boss.BossBar;
|
||||||
|
|
||||||
public class BossBarInfo {
|
public class BossBarInfo {
|
||||||
private String jobName;
|
private String jobName;
|
||||||
private String PlayerName;
|
private String PlayerName;
|
||||||
private BossBar bar;
|
private BossBar bar;
|
||||||
private int id = -1;
|
private int id = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user