From dd5b1869e24f7ea506dd31404f5c7900879a9a2f Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 4 Sep 2013 10:49:19 +0200 Subject: [PATCH] /spawn teleports to the server spawn instead of the player spawn --- src/API/PlayerAPI.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/API/PlayerAPI.php b/src/API/PlayerAPI.php index a7ad56b2..5e9d5635 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)){