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

[HELP] LevelAPI - PlayerAPI

Comments in 'Plugin Development' started by L1nux, Aug 29, 2013.

  1. L1nux
    Offline

    L1nux Banned

    Joined:
    Aug 27, 2013
    Posts:
    17
    Minecraft User:
    EkiFoX
    How can i verify (in plugin) on which the map is located user?
    I create a minigames server :3
  2. ArcaneKnight97
    Offline

    ArcaneKnight97 Active Member Plugin Developer

    Joined:
    Aug 24, 2013
    Posts:
    46
    Plugins:
    5
    Minecraft User:
    redheadedfury
    use this and replace $map with the variable name you are wanting to use :) , that should get the name of the world the player is in

    $map =$player->entity->level->getName();
    L1nux likes this.
  3. L1nux
    Offline

    L1nux Banned

    Joined:
    Aug 27, 2013
    Posts:
    17
    Minecraft User:
    EkiFoX
  4. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    or just Player object -> level -> getName()
    PEMapModder and L1nux like this.
  5. L1nux
    Offline

    L1nux Banned

    Joined:
    Aug 27, 2013
    Posts:
    17
    Minecraft User:
    EkiFoX
    How can i get players on defferent map?
    count($this->api->player->get("Creative") - Gived to me all count of all players on server.

Share This Page

Advertisement