mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed whitelist command & auto-disconnect
This commit is contained in:
parent
e76734628a
commit
a7ec472ef4
2 changed files with 2 additions and 2 deletions
|
|
@ -85,12 +85,12 @@ class Session{
|
|||
$this->server->deleteEvent($ev[0], $ev[1]);
|
||||
}
|
||||
$this->eventHandler("You have been kicked. Reason: ".$reason, "onChat");
|
||||
$this->dataPacket(MC_DISCONNECT);
|
||||
$this->connected = false;
|
||||
if($msg === true){
|
||||
$this->server->trigger("onChat", $this->username." left the game");
|
||||
}
|
||||
console("[INFO] Session with ".$this->ip.":".$this->port." Client ID ".$this->clientID." closed due to ".$reason);
|
||||
$this->dataPacket(MC_DISCONNECT);
|
||||
$this->server->api->player->remove($this->CID);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue