Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Supprime un monde Bukkit après l'avoir unload.
- * @param worldName Le nom du monde.
- */
- public static void deleteWorld(String worldName) {
- World world = Bukkit.getWorld(worldName);
- File f = new File(worldName);
- if(f == null || world == null) return;
- Bukkit.unloadWorld(world, false);
- try {
- FileUtils.deleteDirectory(f);
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement