How to save a word in code?

Discussion in 'Plugin Development' started by RedstoneForDayz, Dec 15, 2014.

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

    RedstoneForDayz

    What I want to do, is make a Spleef plugin, but I want to save the map, then automatically reload the map to make a fresh new map. What is the code to do this?
     
  2. Offline

    indyetoile

    @RedstoneForDayz
    Plenty of tutorials available to do this. Please use the search button before asking.
     
  3. Offline

    ChipDev

    1) WorldEdit
    2) Serialization
     
  4. Offline

    fireblast709

    • Create a new folder in the world container (Bukkit.getWorldContainer()).
    • Copy the seconds world's files in there.
    • Load it using the new folder's name.
    • Do whatever.
    • Teleport all players out of the world, wait a tick (not sure if this is required).
    • Unload the world.
    • Delete the files recursively (might require a delay as well, depends on how nice your OS is)
    • Repeat if necessary.
     
Thread Status:
Not open for further replies.

Share This Page