From 03e059a190832214ae3450c9996df96628cc2b1a Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 4 Jun 2013 00:13:12 +0200 Subject: [PATCH] Added player.spawn and player.respawn --- src/Player.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Player.php b/src/Player.php index 6c01ffd0c..c76f414d6 100644 --- a/src/Player.php +++ b/src/Player.php @@ -1006,6 +1006,7 @@ class Player{ $this->server->schedule(50, array($this, "orderChunks"), array(), true); $this->blocked = false; $this->teleport(new Position($this->data->get("position")["x"], $this->data->get("position")["y"], $this->data->get("position")["z"], $this->level)); + $this->server->handle("player.spawn", $this); break; case 2://Chunk loaded? break; @@ -1220,6 +1221,7 @@ class Player{ $this->sendInventory(); $this->teleport($this->spawnPosition); $this->blocked = false; + $this->server->handle("player.respawn", $this); break; case MC_SET_HEALTH: if($this->spawned === false){