GameWorld loading ony runs /mvm command when Multiverse plugin is present

This commit is contained in:
Marc Baloup 2024-07-19 23:12:56 +02:00
parent d1a04a7a66
commit 3e6cf96040

View File

@ -103,6 +103,7 @@ public class GameWorldUtils implements Listener {
} }
w.setAutoSave(false); w.setAutoSave(false);
gameWorld.put(world, w); gameWorld.put(world, w);
if (Bukkit.getPluginManager().getPlugin("Multiverse-Core") != null)
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "mvm set hidden true "+copiedName); Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "mvm set hidden true "+copiedName);
operationOnLoad.accept(w); operationOnLoad.accept(w);
return w; return w;