Enhancing discord bridge

This commit is contained in:
ArkQuark 2022-05-09 16:25:07 +03:00
parent 113ecd1edc
commit 6f50beeeb5
5 changed files with 6 additions and 5 deletions

View file

@ -303,11 +303,10 @@ class Player{
$this->ackQueue = array();
$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->server->api->chat->broadcast($this->username." left the game: ".$reason);
}
$this->spawned = false;
console("[INFO] ".FORMAT_AQUA.$this->username.FORMAT_RESET."[/".$this->ip.":".$this->port."] logged out due to ".$reason);
$this->server->send2Discord($this->username . " left the game: ".$reason);
$this->windows = array();
$this->armor = array();
$this->inventory = array();