From fb3a892485f5366340f0bf3c777d7735fa247405 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 9 Nov 2024 12:06:12 -0800 Subject: [PATCH] Add disable if MV is used --- src/main/java/world/bentobox/boxed/Boxed.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/world/bentobox/boxed/Boxed.java b/src/main/java/world/bentobox/boxed/Boxed.java index 8255fb5..49e7690 100644 --- a/src/main/java/world/bentobox/boxed/Boxed.java +++ b/src/main/java/world/bentobox/boxed/Boxed.java @@ -131,6 +131,11 @@ public void onEnable() { if (this.getPlugin().getAddonsManager().getAddonByName("InvSwitcher").isEmpty()) { this.logWarning("Boxed normally requires the InvSwitcher addon for per-world Advancements."); } + if (Bukkit.getPluginManager().isPluginEnabled("MultiverseCore")) { + this.logError("Boxed is not compatible with Multiverse! Disabling!"); + this.setState(State.DISABLED); + return; + } // Advancements manager advManager = new AdvancementsManager(this); // Make flags only applicable to this game mode