Funnygatt

Untitled

Dec 20th, 2014
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class Main extends JavaPlugin implements Listener {
  2. public void onEnable() {
  3. Bukkit.getLogger().info("[WorldLoader] Loading plugin!");
  4. Bukkit.getLogger().info("[WorldLoader] XXXXXX Checking file!");
  5.  
  6. File folder = new File("world");
  7. if (folder.exists()) {
  8. try
  9. {
  10. FileUtils.deleteDirectory(folder);
  11. }
  12. catch (IOException e)
  13. {
  14. e.printStackTrace();
  15. }
  16. }
  17. Unzipit.unzip("world.zip");
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment