Can you verify a world without loading it?

Discussion in 'Plugin Development' started by LudicrousYoshi, Mar 17, 2013.

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


    I'm trying to run a check to see what worlds are in a folder so I can load them later if I need them. However, with Bukkit.getWorld(worldname) you get null unless the server has fully loaded and prepared that world.

    Is there any way to check if a folder is a potentially valid world without having to load it?

    Normally it wouldnt be an issue, but the plugin im making would have you choose from like 25 different worlds and loading all 25 would take a great deal of unnecessary time and energy for a computer.
  2. Offline


  3. Offline


  4. Offline


    I don't think it's possible to do that, but I could be mistaken. You could load the world, store it to an Object, then unload it, but the Object would be, for all intents and purposes, useless.
    Ah, yes. I got that code from MultiVerse (just felt like I should give credit where credit is due).
    LudicrousYoshi likes this.
  5. Offline


    Ah bummer, thanks for all the help tho! chasechocolate AngryNerd
Thread Status:
Not open for further replies.

Share This Page