Added Player::setSpawn(Vector3 $pos) method

This commit is contained in:
Shoghi Cervantes Pueyo
2013-04-18 22:34:12 +02:00
parent 9a4c3f8c9f
commit 38950969dd
2 changed files with 23 additions and 6 deletions

View File

@@ -321,6 +321,11 @@ class PlayerAPI{
"y" => $this->server->spawn["y"],
"z" => $this->server->spawn["z"],
),
"spawn" => array(
"x" => $this->server->spawn["x"],
"y" => $this->server->spawn["y"],
"z" => $this->server->spawn["z"],
),
"inventory" => array_fill(0, 36, array(AIR, 0, 0)),
"armor" => array_fill(0, 4, array(AIR, 0, 0)),
"gamemode" => $this->server->gamemode,