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

API Multi-World?

Comments in 'Plugin Development' started by jython234, Nov 17, 2013.

  1. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    So i was going around through the api code and found that there is a getSpawn() method.
    The thing is, it gets the server's default world spawn!
    If i have multiple worlds(I'm making a plugin on this) how do i get the spawn of each world?

    Thanks!

    - Jython234
  2. SuperChipsLP
    Offline

    SuperChipsLP Active Member Plugin Developer

    Joined:
    Sep 15, 2013
    Posts:
    204
    Plugins:
    5
    Minecraft User:
    Redmol
    PHP:

    $level 
    $issuer->level;

    $this->api->level->$level->getSpawn();
    I hope that works.

Share This Page

Advertisement