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,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;
}