diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/CommandBlockCommand.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/CommandBlockCommand.java index 5671405..7b022ca 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/CommandBlockCommand.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/commands/CommandBlockCommand.java @@ -46,6 +46,8 @@ public class CommandBlockCommand implements Command { final CompletableFuture future = bot.core().runTracked(String.join(" ", args)); + if (future == null) return null; + future.thenApply(tags -> { if (!tags.contains("LastOutput") || !(tags.get("LastOutput") instanceof StringTag)) return tags; diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java index d8352be..385b572 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/CorePlugin.java @@ -106,6 +106,8 @@ public class CorePlugin extends PositionPlugin.Listener { run(command); + if (!bot.options().useCore()) return null; + final int transactionId = nextTransactionId++; // promises are renamed to future lmao