mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Players now respawn on the server's spawn point
This commit is contained in:
parent
47af98a875
commit
a5e52e7b9a
@ -782,7 +782,7 @@ class Player{
|
||||
}
|
||||
$this->entity->fire = 0;
|
||||
$this->entity->air = 300;
|
||||
$this->teleport(new Vector3($this->data["spawn"]["x"], $this->data["spawn"]["y"], $this->data["spawn"]["z"]));
|
||||
$this->teleport(new Vector3($this->server->spawn["x"], $this->server->spawn["y"], $this->server->spawn["z"]));
|
||||
$this->entity->setHealth(20, "respawn");
|
||||
$this->entity->updateMetadata();
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user