mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Disallow packet receival on Player disconnect
This commit is contained in:
parent
6d4465eb67
commit
3606c392f2
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue