Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Plugin extends JavaPlugin {
- private static Plugin plugin;
- @Override
- public void onLoad() {
- super.onLoad();
- }
- @Override
- public void onEnable() {
- super.onEnable();
- plugin = this;
- registerEvents();
- GameManager.copyWorld(Bukkit.getWorld("world"), "playworld");
- try {
- File file = new File("playworld");
- Bukkit.unloadWorld(file.getName(), false);
- FileUtils.deleteDirectory(file);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment