don't make the bossbar if core is disabled

This commit is contained in:
Chayapak 2023-06-30 21:21:06 +07:00
parent 268f554f4a
commit 3627763bb9
2 changed files with 1 additions and 2 deletions

View file

@ -13,7 +13,6 @@ import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
public class CommandBlockCommand implements Command { public class CommandBlockCommand implements Command {
public String name() { return "cb"; } public String name() { return "cb"; }

View file

@ -155,7 +155,7 @@ public class BossbarManagerPlugin extends Bot.Listener {
} }
public void add (String name, BotBossBar bossBar) { public void add (String name, BotBossBar bossBar) {
if (!enabled) return; if (!enabled || !bot.options().useCore()) return;
bossBar.id = bossBarPrefix + name; bossBar.id = bossBarPrefix + name;