Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Get world folder

Comments in 'Plugin Development' started by PalkiaDudeYT, Oct 6, 2015.

  1. PalkiaDudeYT
    Offline

    PalkiaDudeYT New Member

    Joined:
    Aug 30, 2015
    Posts:
    33
    Minecraft User:
    PalkiaDude
    How do I get the "worlds" folder in the server files for my plugin? Is it getFolder()?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    $server->getDataPath() . "worlds/"
    $server is an instance of Server, which you would usually get it through $this->getServer().
    Kvetinac97 likes this.
  3. PalkiaDudeYT
    Offline

    PalkiaDudeYT New Member

    Joined:
    Aug 30, 2015
    Posts:
    33
    Minecraft User:
    PalkiaDude
    How do I pick a specific world?
  4. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    pocketmine\level\Level::getFolderName ( )

Share This Page

Advertisement