Hi, when I cancel PlayerMoveEvent, I cancel RotateEvent (?) :3 How can I cancel only change X or Y or Z and no cancel Rotation
Code: public function onMove(PlayerMoveEvent $e){ $from = $e->getFrom(); $to = $e->getTo(); if($from->x !== $to->x ||/*if you don't want to allow jump*/ $from->y !== $to->y || $from->z !== $to->z){ $e->setCancelled(); } }