Dynmap integration; resolves #420

This commit is contained in:
Daniel Saukel 2018-08-31 00:52:07 +02:00
parent 3d23b3c4f3
commit 29044b417a

View File

@ -223,6 +223,11 @@ public class DResourceWorld {
FileUtil.copyDir(folder, instanceFolder, DungeonsXL.EXCLUDED_FILES);
instance.world = Bukkit.createWorld(WorldCreator.name(name).environment(getWorldEnvironment()));
if (Bukkit.getPluginManager().getPlugin("dynmap") != null) {
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "dynmap pause all");
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "dmap worldset " + name + " enabled:false");
Bukkit.dispatchCommand(Bukkit.getConsoleSender(), "dynmap pause none");
}
if (game) {
signData.deserializeSigns((DGameWorld) instance);