purgebars again??

This commit is contained in:
Aubri Seebauer committed 2023-04-28 21:42:17 -04:00
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());