diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index a7ad56b2d..5e9d56355 100644 --- a/src/API/PlayerAPI.php +++ b/src/API/PlayerAPI.php @@ -147,8 +147,7 @@ class PlayerAPI{ $output .= "Please run this command in-game.\n"; break; } - $spawn = $issuer->getSpawn(); - $issuer->teleport($spawn); + $issuer->teleport($this->server->spawn); break; case "ping": if(!($issuer instanceof Player)){