mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
that looks better
This commit is contained in:
parent
b1c28ed51b
commit
84069f79e9
1 changed files with 4 additions and 4 deletions
|
|
@ -291,10 +291,6 @@ class Player{
|
|||
$this->directDataPacket(MC_DISCONNECT);
|
||||
$this->connected = false;
|
||||
$this->level->freeAllChunks($this);
|
||||
if($msg === true and $this->username != "" and $this->spawned !== false){
|
||||
$this->server->api->chat->broadcast($this->username." left the game");
|
||||
}
|
||||
$this->spawned = false;
|
||||
$this->loggedIn = false;
|
||||
$this->buffer = null;
|
||||
unset($this->buffer);
|
||||
|
|
@ -304,6 +300,10 @@ class Player{
|
|||
$this->ackQueue = array();
|
||||
$this->server->interface->stopChunked($this->CID);
|
||||
$this->server->api->player->remove($this->CID);
|
||||
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…
Add table
Add a link
Reference in a new issue