mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 07:39:57 +00:00
Merge pull request #1214 from nno88551/patch-2
fixed disconnected message
This commit is contained in:
commit
aff2b9882a
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user