Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onDisable() {
- if(current == State.FINISH){
- World unload = Bukkit.getWorld("world");
- World copy = Bukkit.getWorld("copy");
- Bukkit.unloadWorld(unload, false);
- File WorldFile = new File(unload.getName());
- File worldCopyFile = new File(copy.getName());
- worldUtils.deleteWorld(WorldFile);
- try{
- worldUtils.copyFolder(worldCopyFile, WorldFile);
- }catch(IOException e){ e.printStackTrace();}
- }
- if(this.villager != null){
- this.villager.remove();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement