1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Position of Player

Discussion in 'Development' started by bySentixPE, May 25, 2018.

  1. bySentixPE

    bySentixPE Spider Jockey

    Messages:
    37
    How can i save the Position of the Player who use the command "test" in a config?

    Sorry for my Bad english!
     
  2. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    PHP:
    $this->getConfig()->set("X"$player->getX());
    $this->getConfig()->set("Y"$player->getY());
    $this->getConfig()->set("Z"$player->getZ());
    $this->getConfig()->save();
     
  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.