Save the world? - Help!

Discussion in 'Plugin Development' started by Pythros, Nov 1, 2011.

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


    I'm trying to figure out to save world information. I'm able to get player info to save, but not the world.

    I see this:

    save() - Method in interface org.bukkit.World
    Saves world to disk
    SaveCommand - Class in org.bukkit.command.defaults
    SaveCommand() - Constructor for class org.bukkit.command.defaults.SaveCommand

    But I'm not sure how to use it? I mean I could always use the source for SaveCommand, but I'm sure there is a better way? Maybe?
                                for (World world : Bukkit.getWorlds())
  2. Offline


    Why do you think it's a bad way?
    It's a perfect way to do that:
    you iterate through all loaded worlds and save them.
    iffa likes this.
  3. Offline


    I guess what I am getting at, I don't understand how to use the save's in the docs versus copy/paste the code it runs.
  4. Offline


Thread Status:
Not open for further replies.

Share This Page