/spawn teleports to the server spawn instead of the player spawn

This commit is contained in:
Shoghi Cervantes 2013-09-04 10:49:19 +02:00
parent 724d336853
commit dd5b1869e2

View File

@ -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)){