Guest User

Untitled

a guest
Jun 26th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. public class Plugin extends JavaPlugin {
  2.  
  3.     private static Plugin plugin;
  4.  
  5.     @Override
  6.     public void onLoad() {
  7.         super.onLoad();
  8.     }
  9.  
  10.     @Override
  11.     public void onEnable() {
  12.         super.onEnable();
  13.         plugin = this;
  14.         registerEvents();
  15.  
  16.         GameManager.copyWorld(Bukkit.getWorld("world"), "playworld");
  17.  
  18.         try {
  19.             File file = new File("playworld");
  20.             Bukkit.unloadWorld(file.getName(), false);
  21.             FileUtils.deleteDirectory(file);
  22.         } catch (Exception e) {
  23.             e.printStackTrace();
  24.         }
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment