Hello i would say how teleport players with command ($sender) and event ($event) i know it's teleport() with vector3 but how to use it ? Please give exemples.
With command sender you can do the following to teleport the player to x=1, y=2, z=3. PHP: if($sender instanceof Player){ //Verify that it isn't console issuing command $sender->teleport(new Vector3(1, 2, 3));} For events that extend PlayerEvent (PlayerChatEvent, PlayerMoveEvent and etc...): PHP: $event->getPlayer()->teleport(new Vector3(1, 2, 3)); For entity events you can use: PHP: if($event->getEntity() instanceof Player){ //Verify that entity is a Player $event->getEntity()->teleport(new Vector3(1, 2, 3));}