mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added Player::setSpawn(Vector3 $pos) method
This commit is contained in:
parent
9a4c3f8c9f
commit
38950969dd
2 changed files with 23 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue