mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Enhancing discord bridge
This commit is contained in:
parent
113ecd1edc
commit
6f50beeeb5
5 changed files with 6 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue