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

[New API] Get Full Player Position

Comments in 'Plugin Development' started by Adaasi, Sep 4, 2014.

  1. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    How can I get full Player position?
    Code:
    Example:
    Player.X
    Player.Y
    Player.Z
    Player.Yaw
    Player.Pitch
    Last edited: Sep 4, 2014
    LDX likes this.
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    $player->x;
    $player->y;
    $player->z;
    $player->yaw;
    $player->pitch;

    // player level
    $player->getLevel();

    // player level name
    $player->getLevel()->getName();
    LDX and 64FF00 like this.
  3. Adaasi
    Offline

    Adaasi Active Member

    Joined:
    Aug 14, 2014
    Posts:
    78
    Thanks :):):):)
    DeBe and 64FF00 like this.

Share This Page

Advertisement