From 3606c392f26f554241af50ad5a620c5d5f34fefe Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sun, 21 Jul 2013 23:35:03 +0200 Subject: [PATCH] Disallow packet receival on Player disconnect --- src/Player.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Player.php b/src/Player.php index 8d303c53..72e06c65 100644 --- a/src/Player.php +++ b/src/Player.php @@ -276,6 +276,8 @@ class Player{ $this->server->api->chat->broadcast($this->username." left the game"); } console("[INFO] \x1b[33m".$this->username."\x1b[0m[/".$this->ip.":".$this->port."] logged out due to ".$reason); + $this->spawned = false; + $this->loggedIn = false; $this->server->api->player->remove($this->CID); } }