fixed disconnected message

This commit is contained in:
키리토 2014-02-12 19:12:07 +09:00
parent a373a581c5
commit 4352fce82d

View File

@ -294,7 +294,6 @@ class Player{
$this->directDataPacket(new DisconnectPacket); $this->directDataPacket(new DisconnectPacket);
$this->connected = false; $this->connected = false;
$this->level->freeAllChunks($this); $this->level->freeAllChunks($this);
$this->spawned = false;
$this->loggedIn = false; $this->loggedIn = false;
$this->buffer = null; $this->buffer = null;
unset($this->buffer); unset($this->buffer);
@ -306,6 +305,7 @@ class Player{
if($msg === true and $this->username != "" and $this->spawned !== false){ if($msg === true and $this->username != "" and $this->spawned !== false){
$this->server->api->chat->broadcast($this->username." left the game"); $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); console("[INFO] ".FORMAT_AQUA.$this->username.FORMAT_RESET."[/".$this->ip.":".$this->port."] logged out due to ".$reason);
$this->windows = array(); $this->windows = array();
$this->armor = array(); $this->armor = array();