mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-17 21:02:12 +01:00
Dynmap integration; resolves #420
This commit is contained in:
parent
3d23b3c4f3
commit
29044b417a
@ -223,6 +223,11 @@ public class DResourceWorld {
|
|||||||
|
|
||||||
FileUtil.copyDir(folder, instanceFolder, DungeonsXL.EXCLUDED_FILES);
|
FileUtil.copyDir(folder, instanceFolder, DungeonsXL.EXCLUDED_FILES);
|
||||||
instance.world = Bukkit.createWorld(WorldCreator.name(name).environment(getWorldEnvironment()));
|
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) {
|
if (game) {
|
||||||
signData.deserializeSigns((DGameWorld) instance);
|
signData.deserializeSigns((DGameWorld) instance);
|
||||||
|
Loading…
Reference in New Issue
Block a user