Spigot World Copy
copyWorld(sourceFolder, targetFolder);
Grotesque Gerbil
copyWorld(sourceFolder, targetFolder);
// The world to copyWorld source = Bukkit.getWorld("world");File sourceFolder = source.getWorldFolder(); // The world to overwrite when copyingWorld target = Bukkit.getWorld("NewWorld");File targetFolder = target.getWorldFolder();