mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 12:27:51 +00:00
/spawn teleports to the server spawn instead of the player spawn
This commit is contained in:
parent
724d336853
commit
dd5b1869e2
@ -147,8 +147,7 @@ class PlayerAPI{
|
|||||||
$output .= "Please run this command in-game.\n";
|
$output .= "Please run this command in-game.\n";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$spawn = $issuer->getSpawn();
|
$issuer->teleport($this->server->spawn);
|
||||||
$issuer->teleport($spawn);
|
|
||||||
break;
|
break;
|
||||||
case "ping":
|
case "ping":
|
||||||
if(!($issuer instanceof Player)){
|
if(!($issuer instanceof Player)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user