I am creating a UHC plugin, and when the game ends, I want the world to be loaded and overridden, so that the map resets. I heard of doing Bukkit.getServer().getWorlds().add(); But does that override a world? Anyway of overriding/loading in a world?
never had to do such thing but java side i think you can manualy delete the worlds folder and put in the new one, then refresh the world. <Bad idea Alternativly you could keep a hashmap of block breaks to restore them <even worse idea.