From 3e6cf96040ccf017a15f93ca821fbe043108f371 Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Fri, 19 Jul 2024 23:12:56 +0200 Subject: [PATCH] GameWorld loading ony runs /mvm command when Multiverse plugin is present --- .../main/java/fr/pandacube/lib/paper/util/GameWorldUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/GameWorldUtils.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/GameWorldUtils.java index cd40d22..3c5acde 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/GameWorldUtils.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/GameWorldUtils.java @@ -103,7 +103,8 @@ public class GameWorldUtils implements Listener { } w.setAutoSave(false); gameWorld.put(world, w); - Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "mvm set hidden true "+copiedName); + if (Bukkit.getPluginManager().getPlugin("Multiverse-Core") != null) + Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "mvm set hidden true "+copiedName); operationOnLoad.accept(w); return w; }