From 4352fce82ddb1ee92ee042b0e3d12c19c43ee34f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=82=A4=EB=A6=AC=ED=86=A0?= Date: Wed, 12 Feb 2014 19:12:07 +0900 Subject: [PATCH] fixed disconnected message --- src/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index 35f392314..6bd62aa62 100644 --- a/src/Player.php +++ b/src/Player.php @@ -294,7 +294,6 @@ class Player{ $this->directDataPacket(new DisconnectPacket); $this->connected = false; $this->level->freeAllChunks($this); - $this->spawned = false; $this->loggedIn = false; $this->buffer = null; unset($this->buffer); @@ -306,6 +305,7 @@ class Player{ if($msg === true and $this->username != "" and $this->spawned !== false){ $this->server->api->chat->broadcast($this->username." left the game"); } + $this->spawned = false; console("[INFO] ".FORMAT_AQUA.$this->username.FORMAT_RESET."[/".$this->ip.":".$this->port."] logged out due to ".$reason); $this->windows = array(); $this->armor = array();