diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index 95c7302b..2385b9af 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -326,6 +326,7 @@ class PlayerAPI{ $origin = $this->get($name); if($origin instanceof Player){ $name = $origin->username; + $target = $player->username; return $origin->teleport($player->entity); } }