Skip to content

PlayerMoveEvent ​

class · pocketmine\event\player\PlayerMoveEvent · source

Extends PlayerEvent
Implements Cancellable

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $player, \pocketmine\entity\Location $from, \pocketmine\entity\Location $to)

getFrom() ​

php
public function getFrom() : \pocketmine\entity\Location

getTo() ​

php
public function getTo() : \pocketmine\entity\Location

setTo() ​

php
public function setTo(\pocketmine\entity\Location $to) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.