Fix level.dat issue on bukkit as well

This commit is contained in:
Blue (Lukas Rieger) 2020-01-18 01:30:38 +01:00
parent 6b8dadd1dc
commit 271f451246
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ public class BukkitPlugin extends JavaPlugin implements ServerInterface {
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);