Close world handle before removing the file; resolves #506

This commit is contained in:
Daniel Saukel 2019-07-28 19:42:54 +02:00
parent d74c0276ea
commit c9a3e31016

View File

@ -470,7 +470,7 @@ public class DGameWorld extends DInstanceWorld {
kickAllPlayers();
Bukkit.unloadWorld(getWorld(), false);
Bukkit.unloadWorld(getWorld(), true);
FileUtil.removeDir(getFolder());
worlds.removeInstance(this);
}