Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main extends JavaPlugin implements Listener {
- public void onEnable() {
- Bukkit.getLogger().info("[WorldLoader] Loading plugin!");
- Bukkit.getLogger().info("[WorldLoader] XXXXXX Checking file!");
- File folder = new File("world");
- if (folder.exists()) {
- try
- {
- FileUtils.deleteDirectory(folder);
- }
- catch (IOException e)
- {
- e.printStackTrace();
- }
- }
- Unzipit.unzip("world.zip");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment