how to get all worlds including their generator?

Discussion in 'Plugin Development' started by xize, Jul 29, 2014.

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

    xize

    Hello,

    so I'm wondering this for some while, how do I get all the worlds including the ones who are unloaded and aren't findable through the Bukkit.getWorlds() method?, also how would I get their generator for example world_nether ?

    for now I simple loop over every folder in the bukkit root directory but I think this is pretty bad though, is there not a better way around this?

    thanks:)
     
  2. Offline

    Garris0n

    If you set the world container to a specific directory it would be easier.
     
Thread Status:
Not open for further replies.

Share This Page