Skip to content

Commit

Permalink
Close world handle before removing the file; resolves #506
Browse files Browse the repository at this point in the history
  • Loading branch information
Sataniel98 committed Jul 28, 2019
1 parent d74c027 commit c9a3e31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ public void delete() {

kickAllPlayers();

Bukkit.unloadWorld(getWorld(), false);
Bukkit.unloadWorld(getWorld(), true);
FileUtil.removeDir(getFolder());
worlds.removeInstance(this);
}
Expand Down

0 comments on commit c9a3e31

Please sign in to comment.