mirror of
https://github.com/darksaid98/AlathranWars.git
synced 2026-12-01 22:14:45 +00:00
purgebars again??
This commit is contained in:
1 parent
4b66168af7
commit
c7e1f8a026
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().getNamespace().contains(Main.getInstance().getName())) {
|
||||
if(b.getKey().getNamespace().equalsIgnoreCase(Main.getInstance().getName())) {
|
||||
b.setVisible(false);
|
||||
b.removeAll();
|
||||
Bukkit.removeBossBar(b.getKey());
|
||||
|
||||
Reference in new issue
Block a user