From c9a3e31016b3cf7c1f81645efdbe0a38565f069f Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Sun, 28 Jul 2019 19:42:54 +0200 Subject: [PATCH] Close world handle before removing the file; resolves #506 --- core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java b/core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java index 3322c692..b703fada 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java +++ b/core/src/main/java/de/erethon/dungeonsxl/world/DGameWorld.java @@ -470,7 +470,7 @@ public class DGameWorld extends DInstanceWorld { kickAllPlayers(); - Bukkit.unloadWorld(getWorld(), false); + Bukkit.unloadWorld(getWorld(), true); FileUtil.removeDir(getFolder()); worlds.removeInstance(this); }