mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Added disconnect packet
This commit is contained in:
parent
adbf56d754
commit
0b70b36ee1
2 changed files with 4 additions and 2 deletions
|
|
@ -97,7 +97,11 @@ class Session{
|
|||
$this->server->deleteEvent($ev);
|
||||
}
|
||||
$this->eventHandler("You have been kicked. Reason: ".$reason, "onChat");
|
||||
$this->dataPacket(MC_LOGIN_STATUS, array(
|
||||
"status" => 1,
|
||||
));
|
||||
$this->dataPacket(MC_DISCONNECT);
|
||||
|
||||
$this->connected = false;
|
||||
if($msg === true){
|
||||
$this->server->trigger("onChat", $this->username." left the game");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue