1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How do I load multiple worlds?

Discussion in 'Help' started by fergatron, Dec 21, 2017.

  1. fergatron

    fergatron Spider

    Messages:
    7
    GitHub:
    fergatron
    Hi, I'm very new to PocketMine and I'm trying to figure out what the core code provides vs plugins. How do I configure my server to have multiple worlds?
    I added some worlds to the pocketmine.yml file:
    Code:
    worlds:
     lobby: []
     adventure: []
     creative: []
    I looked through server.log and I didn't see any indication that the worlds exist, but I do see the entries in the worlds/ directory. How do I switch between them? /transferserver doesn't seem like the appropriate command.

    I can only assume that the array is used to hold the individual settings for each world. Is that correct? Could I:
    Code:
    lobby: ['seed: 404', 'generator: FLAT']
    I think we need to have a GUIDE forum setup. I don't think the notes in these config files are super useful. The example note for worlds didn't indicate that I could simply add a 'world-name' followed by a colon and an empty array. I found that in another forum thread.

    I feel that I need to append my inquires with a big THANK YOU to the developers that make this server possible. I am truly grateful for the level of effort it takes to maintain this. I'm merely frustrated because there's little guidance to people new to this.
     
    corytortoise and OnTheVerge like this.
  2. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    You can load the work by using a code.
     
  3. fergatron

    fergatron Spider

    Messages:
    7
    GitHub:
    fergatron
    What would that code be, LewBr? ;)
     
  4. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    PHP:
    \pocketmine\Server::getInstance()->loadLevel('name');
     
    fergatron likes this.
  5. fergatron

    fergatron Spider

    Messages:
    7
    GitHub:
    fergatron
    OK so based on your responses I can conclude that loading worlds through a command isn't supported in the core code. This is something that's achieved through plugins. Thanks.
     
  6. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you cant switch worlds without plugins, but the config you put in is correct, that will load other worlds along
     
    corytortoise and EdwardHamHam like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.