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. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    should be marked as solved if it is
     
  2. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
    It 'stands for' an empty array (in YAML and PHP). The correct terminology would have been what does [] mean (or represent).
     
    Enzo likes this.
  3. Enzo

    Enzo Creeper

    Messages:
    5
    GitHub:
    iLuvLinux
    How to get the Plugin on DEV builds?

    E.G. (My version): PocketMine-MP 1.6.2dev-266 「Unleashed」 implementing API version 3.0.0-ALPHA6 for Minecraft: PE v1.1.0.55 (protocol version 113)

    So...?
     
  4. Patrik1480

    Patrik1480 Creeper

    Messages:
    1
    That doesnt work!
     
  5. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    hi,

    I created 6 worlds on my server : world, nether, ender, faction, lobby,rp

    faction, lobby, rp were created with Worlds plugins
    nether, ender, were created by TeaSpoon plugins

    When i start my server, only 3 worlds are loading
    When i stop my server, these 3 worlds are unloading

    start server
    2017-11-21 [10:27:10] �[Server thread/INFO]: Preparing level "world"�
    2017-11-21 [10:27:10] �[Server thread/INFO]: Preparing level "nether"�
    2017-11-21 [10:27:10] �[Server thread/INFO]: Preparing level "ender"�

    stop server
    2017-11-21 [10:27:06] �[Server thread/INFO]: Unloading level "world"�
    2017-11-21 [10:27:06] �[Server thread/INFO]: Unloading level "nether"�
    2017-11-21 [10:27:06] �[Server thread/INFO]: Unloading level "ender"�

    On server properties level-name=world i tried this configuration but it does'nt work
    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)
    ender: []
    faction: []
    lobby: []
    nether: []
    rp: []


    How to configure full loading word at start server ?
    thanks

    sorry for my bas english


    PocketMine-MP_1.7dev-427
    Worlds_dev-13
    TeaSpoon_dev-16
     
  6. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    up,
    it's ok my format was wrong
     
  7. Overlord5717

    Overlord5717 Spider

    Messages:
    7
    GitHub:
    ray32
    Any ideas ? Because I am running into the same issue... Just ending up in "world"
     
  8. driver1848

    driver1848 Spider Jockey

    Messages:
    35
    GitHub:
    driver1848
    Id write a simple WLoader with MultiWorld... U can implement this in a other Plugin:
    PHP:
    public function Load($name){
            if(
    $this->getServer()->isLevelLoaded($name) === false){
                
    $this->getServer()->dispatchCommand(new ConsoleCommandSender(), 'mw load '.$name);
            }
        }
    U can call this function so:
    PHP:
    public function ThingsAtLoginEvent(PlayerLoginEvent $e){
    $this->Load(”lvlname“);
    }
    But all Code have to be in the same class!

    Edit:
    Second code part has a bad layout cause I’m on phone
     
  9. Overlord5717

    Overlord5717 Spider

    Messages:
    7
    GitHub:
    ray32
    I actually need a fully functioning Lobby plugin. There must be one already
     
  10. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    No no no no no no no
    Don't do this, the world API isn't hard to use and you're just asking for trouble depending on another plugin to load a world.
    If you want to have them loaded on startup, just put them in pocketmine.yml, if you want to load them using your plugin, just use pocketmine's API
     
  11. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    I can't find one on Poggit, but you can use a warp plugin and aliases instead.
     
  12. driver1848

    driver1848 Spider Jockey

    Messages:
    35
    GitHub:
    driver1848
    [​IMG]
     
  13. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    That is the correct response to your post, thank you for sparing me the search
     
  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.