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

Solved How to load multiple worlds on startup?

Discussion in 'Plugin Help' started by StuntzCo, Feb 20, 2017.

  1. StuntzCo

    StuntzCo Baby Zombie

    Messages:
    197
    ^^ Im using the plugin Manyworlds and also in conjunction with that simplewarp and its brother simpleportals.
    I have to load all of my worlds manually except for my lobby is there any way I can load all of my worlds on server startup. Or can I at least have them load up when a player warps to them and then unload when there are no longer any players on said world.
     
  2. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    This functionality is built into Pocketmine. In your pocketmine.yml file, at the very bottom, you can add the worlds you want to load.
     
  3. StuntzCo

    StuntzCo Baby Zombie

    Messages:
    197
    my second and the option i like better would probably be possible if i made a world loading plugin that was dependent on simple warp and simple portals . too bad i
    is there a way to configure what the second thing i said was
     
  4. StuntzCo

    StuntzCo Baby Zombie

    Messages:
    197
    how to set it to generate a flat world in the pocketmine yml
     
  5. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    No automatic loading/unloading of levels exists in pmmp AFAIK.
     
  6. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    Example on how to load multiple worlds on startup!
     

    Attached Files:

    StuntzCo likes this.
  7. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    Attached with how to allow it to make a FLAT world using server.properties

    Code:
    level-type: FLAT
    Available types:
    DEFAULT
    
     

    Attached Files:

    StuntzCo likes this.
  8. LordJoshie

    LordJoshie Silverfish

    Messages:
    22
    GitHub:
    lordjoshie
    /mw create (name) flat = flat world
    /mw create (name) flat flat flat = empty world
     
    StuntzCo likes this.
  9. StuntzCo

    StuntzCo Baby Zombie

    Messages:
    197
    Thank you very helpful. I know it gives an example in the pocketmine yml but for some reason i couldn't get it to work tell now, must've been something wrong
     
  10. StuntzCo

    StuntzCo Baby Zombie

    Messages:
    197
    okay for some reason or another I'm still not loading multiple worlds on startup heres my pocketmine.yml
    Code:
    
    aliases:
     #Examples:
     showtheversion: version
     savestop: [save-all, stop]
    
    worlds: 
    Creative: []
    Server-lobby: []
     #These settings will override the generator set in server.properties and allows loading multiple levels
     #Example:
     #world:
     # seed: 404
     # generator: FLAT:2;7,59x1,3x3,2;1;decoration(treecount=80 grasscount=45)
    
    and my properties
    Code:
    #Properties Config file
    #Mon Feb 20 13:53:15 EST 2017
    motd=§b§L§o§nAETHER_NETWORK§f
    server-name=AETHER_NETWORK
    server-port=19132
    gamemode=2
    max-players=100
    spawn-protection=130
    white-list=off
    enable-query=on
    enable-rcon=on
    rcon.password=KNmHXkU+vG
    announce-player-achievements=on
    allow-flight=off
    spawn-animals=on
    spawn-mobs=on
    force-gamemode=on
    hardcore=off
    pvp=on
    difficulty=1
    generator-settings=
    level-name=Server-Lobby
    level-seed=
    level-type=DEFAULT
    auto-save=on
    
    Screen Shot 2017-02-20 at 1.53.23 PM.png
     
    Enzo likes this.
  11. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    [​IMG]

    Just copy the f****** example and remove the #s, nothing else, not the spaces either! And then insert your world name, type, etc.
     
    StuntzCo and Sandertv like this.
  12. StuntzCo

    StuntzCo Baby Zombie

    Messages:
    197
    *StuntzCo fell from a high place* *StuntzCo went up in flames
     
    dktapps, Sandertv and HimbeersaftLP like this.
  13. StuntzCo

    StuntzCo Baby Zombie

    Messages:
    197
    :p it worked and the gif replying to my stupid question was dank
     
    HimbeersaftLP likes this.
  14. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    Sandertv suffocated in a wall
     
    Enzo and StuntzCo like this.
  15. LordJoshie

    LordJoshie Silverfish

    Messages:
    22
    GitHub:
    lordjoshie
    here is a copy of the tail end of my pocketmine.yml...

    See how I load my worlds.




    aliases:
    #Examples:
    #showtheversion: version
    #savestop: [save-all, stop]

    worlds:
    #These settings will override the generator set in server.properties and allows loading multiple levels
    #Example:
    #world:
    # seed: 404
    # generator: FLAT:2;7,59x1,3x3,2;1;decoration(treecount=80 grasscount=45)
    AngelTazon: []
    Spawn: []
    ClanWorld: []
    LoneWolfWorld: []
    PlotWorld: []
    VIP: []
    nether: []
     
  16. StuntzCo

    StuntzCo Baby Zombie

    Messages:
    197
    wg
    What does this [] stand for
     
    Enzo likes this.
  17. LordJoshie

    LordJoshie Silverfish

    Messages:
    22
    GitHub:
    lordjoshie
    just means nothing :p what I do know, is that it doesn't effect anything negatively.

    and that if you follow that format, you'll get the results you seek.
     
  18. StuntzCo

    StuntzCo Baby Zombie

    Messages:
    197
    yea i got it working now the annoying thing was i did it right the first time before i even making this thread but i put the code above the worlds: and it didnt work i was so close lol
     
  19. LordJoshie

    LordJoshie Silverfish

    Messages:
    22
    GitHub:
    lordjoshie
    Ayeee, no worries man. you wouldn't believe the mistakes I made when I was just starting out...

    I'm still learning. I worked my way up to understanding how to string edit plugins, and strip code and move it around... but I don't fully know what I'm doing, so I often come here to ask for help with things I don't know yet.

    It's a great place.

    Glad you figured it out now m'dude ! Hope things are smooth for you now.
     
  20. LordJoshie

    LordJoshie Silverfish

    Messages:
    22
    GitHub:
    lordjoshie
    Oh, also... a great way to load/unload worlds in game (if they aren't loading, or if players get stuck on loading terrain)

    /mw unload (worldname)
    /mw load (worldname)

    I'm about to set this up on some taptodo signs for my mods to control world reloading when players have issues.

    I'd do the commands separately on different signs, so the mods can allow 2-3 seconds between the commands.

    But tap-to-do & the /as command is amazing for giving players an ability to run commands that are banned from certain worlds.

    To allow this, I give the permission to the player, but ban the command in all the worlds... so they cant use it, but the console can use it for them.

    it works, it's tricky but works :)
     
  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.