mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
Added "player.teleport"
This commit is contained in:
@@ -599,6 +599,10 @@ class Player{
|
||||
if($pitch === false){
|
||||
$pitch = $this->entity->pitch;
|
||||
}
|
||||
if($this->server->api->dhandle("player.teleport", array("player" => $this, "target" => $pos)) === false){
|
||||
return false;
|
||||
}
|
||||
|
||||
$this->lastCorrect = $pos;
|
||||
$this->entity->fallY = false;
|
||||
$this->entity->fallStart = false;
|
||||
|
Reference in New Issue
Block a user