mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 14:38:55 +00:00
Merge branch 'main' of https://github.com/ShermansWorld/AlathraWar
This commit is contained in:
commit
0f0c8c5548
1 file changed
+1
-1
@@ -148,7 +148,7 @@ public class AdminCommands implements CommandExecutor {
|
||||
private static boolean purgebars(CommandSender sender, String[] args) {
|
||||
for (Iterator<KeyedBossBar> it = Bukkit.getBossBars(); it.hasNext(); ) {
|
||||
KeyedBossBar b = it.next();
|
||||
if(b.getKey().getKey().contains(Main.getInstance().getName())) {
|
||||
if(b.getKey().getNamespace().contains(Main.getInstance().getName())) {
|
||||
b.setVisible(false);
|
||||
b.removeAll();
|
||||
Bukkit.removeBossBar(b.getKey());
|
||||
|
||||
Reference in new issue
Block a user