Closed Xiaoming0313883 closed 2 years ago
Please show the code you used to reproduce the above.
$to = $event->getTo();
var_dump($to->getX() . " + " . $to->getY() . " + " . $to->getZ());
I check the real position by looking on coordinate tag, in vanilla it call showcoordinate.
Honestly I dump to and from position also, but you can reduce it by using one of them.
⚠️ This issue ticket doesn't have all the required information ⚠️ To make it as quick and easy as possible for maintainers to fix your problem, an issue template is provided which lists certain required information. This includes (but is not limited to):
version
command)plugins
command)Without this information, your problem cannot begin to be investigated, so the issue will be closed. You may amend this one, or create a new one, providing all the required information using one of the provided issue templates.
Help us to help you by providing the information we ask for.
This server is running PocketMine-MP
public function onMove(PlayerMoveEvent $event){
$to = $event->getTo();
$x = $to->getX();
$y = $to->getY();
$z = $to->getZ();
$event->getPlayer()->sendMessage("You're moving to $x, $y, $z");
}
Issue description
Cause