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

ERROR on TELEPORTATION

Discussion in 'Facepalm' started by KittyDev, Aug 20, 2017.

  1. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev
    The teleportation works fine but i always get this error on my console
    Argument 1 passed to pocketmine\Player::sendPosition() must be an instance of pocketmine\math\Vector3,



    This is my code on teleporting player

    $player->teleport(new Position($portal["dx"], $portal["dy"], $portal["dz"], $this->getServer()->getLevelByName($portal["dlevel"])));
     
  2. moska

    moska Baby Zombie

    Messages:
    105
    GitHub:
    supermaxalex
    Are you using the latest pmmp commit ?
     
    Muqsit likes this.
  3. KittyDev

    KittyDev Slime

    Messages:
    96
    GitHub:
    FreakingDev
    im using the alpha5
     
  4. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    You should update your version then. This has been long fixed.
     
    Muqsit likes this.
  5. moska

    moska Baby Zombie

    Messages:
    105
    GitHub:
    supermaxalex
  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.