mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-19 13:51:20 +01:00
Close world handle before removing the file; resolves #506
This commit is contained in:
parent
d74c0276ea
commit
c9a3e31016
@ -470,7 +470,7 @@ public class DGameWorld extends DInstanceWorld {
|
|||||||
|
|
||||||
kickAllPlayers();
|
kickAllPlayers();
|
||||||
|
|
||||||
Bukkit.unloadWorld(getWorld(), false);
|
Bukkit.unloadWorld(getWorld(), true);
|
||||||
FileUtil.removeDir(getFolder());
|
FileUtil.removeDir(getFolder());
|
||||||
worlds.removeInstance(this);
|
worlds.removeInstance(this);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user