Import worlds with multiverse API

Discussion in 'Spigot Plugin Development' started by Ziron5, May 15, 2015.

  1. Hi guys,

    since the Multiverse-Core javadocs are down I have to ask you a question:

    I have a worldmanager and everything set up. Now I want to make my plugin import a world by its folders name. All I can find is wm.loadWorld(); Wich can only access imported worlds as it seems.

    Is it possible to import worlds so I can use them later on, e.g. to teleport a player to it.

    Sorry for that noob question but as I said I have no other way to find out and noone else has posted this question so far.


    Thanks in advance!


    -Ziron5
     
  2. @Ziron5 "Import world"... So like, new WorldCreator("folder name").createWorld()? (note that this is all Bukkit stuff, no MultiVerse required). From that point on you can simply use Bukkit.getWorld("folder name") to get the World reference.
     
    • Winner Winner x 1
  3. okay I think the existence of MultiVerse distracted me from the possibility that Bukkit can load worlds itself xD

    Thank you very much! Tried it out, works! :)