Load in a world?

Discussion in 'Plugin Development' started by BetaNyan, Sep 3, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    BetaNyan

    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?
     
  2. Offline

    mine-care

    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.
     
  3. Offline

    fireblast709

    BetaNyan unload the world and load it again. Also disable autosaving.
     
Thread Status:
Not open for further replies.

Share This Page