I would like to teleport player, when he falls. My code: PHP: public function onFall(EntityDamageEvent $event){ if ($event->getEntity() instanceof Player && $event->getCause() == 4) { $event->setCancelled(); $event->getEntity()->teleport(new Vector3($this->x, $this->y, $this->z)); }} But when event is triggered and player teleported, I see repeating message in the console: [Server thread/WARNING]: player moved too fast, reverting movement And player can't move - him return back to teleport position Why? :c
The reverting movement thing has to do with Anti-Cheat built in. If I'm correct @dktapps has been working on it, and (correct me if I'm wrong) you can disable movement check in pocketmine.yml to 'fix' it.