From 271f451246c4ab8ef300b4cf2a0aabda0255a934 Mon Sep 17 00:00:00 2001 From: "Blue (Lukas Rieger)" Date: Sat, 18 Jan 2020 01:30:38 +0100 Subject: [PATCH] Fix level.dat issue on bukkit as well --- .../java/de/bluecolored/bluemap/bukkit/BukkitPlugin.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BlueMapBukkit/src/main/java/de/bluecolored/bluemap/bukkit/BukkitPlugin.java b/BlueMapBukkit/src/main/java/de/bluecolored/bluemap/bukkit/BukkitPlugin.java index b3d49919..802bbce8 100644 --- a/BlueMapBukkit/src/main/java/de/bluecolored/bluemap/bukkit/BukkitPlugin.java +++ b/BlueMapBukkit/src/main/java/de/bluecolored/bluemap/bukkit/BukkitPlugin.java @@ -39,6 +39,11 @@ public BukkitPlugin() { public void onEnable() { new MetricsLite(this); + //save world so the level.dat is present on new worlds + for (World world : getServer().getWorlds()) { + world.save(); + } + getServer().getPluginManager().registerEvents(eventForwarder, this); getCommand("bluemap").setExecutor(commands);