mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Hide leave messages from non-spawned players
This commit is contained in:
parent
d6cc8415dc
commit
d5a6be70ac
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ class Player{
|
|||
$this->ackQueue = array();
|
||||
$this->server->interface->stopChunked($this->CID);
|
||||
$this->server->api->player->remove($this->CID);
|
||||
if($msg === true and $this->username != ""){
|
||||
if($msg === true and $this->username != "" and $this->spawned !== false){
|
||||
$this->server->api->chat->broadcast($this->username." left the game");
|
||||
}
|
||||
console("[INFO] ".FORMAT_AQUA.$this->username.FORMAT_RESET."[/".$this->ip.":".$this->port."] logged out due to ".$reason);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue