forked from ChomeNS/chomens-bot-java
don't make the bossbar if core is disabled
This commit is contained in:
parent
268f554f4a
commit
3627763bb9
2 changed files with 1 additions and 2 deletions
|
@ -13,7 +13,6 @@ import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
public class CommandBlockCommand implements Command {
|
||||
public String name() { return "cb"; }
|
||||
|
|
|
@ -155,7 +155,7 @@ public class BossbarManagerPlugin extends Bot.Listener {
|
|||
}
|
||||
|
||||
public void add (String name, BotBossBar bossBar) {
|
||||
if (!enabled) return;
|
||||
if (!enabled || !bot.options().useCore()) return;
|
||||
|
||||
bossBar.id = bossBarPrefix + name;
|
||||
|
||||
|
|
Loading…
Reference in a new issue