mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 11:26:37 +00:00
Ghost players don't leave a quit message
This commit is contained in:
parent
58631ba1d0
commit
6a29dd5a8d
@ -214,7 +214,7 @@ class Player{
|
|||||||
$this->queue = null;
|
$this->queue = null;
|
||||||
unset($this->queue);
|
unset($this->queue);
|
||||||
$this->connected = false;
|
$this->connected = false;
|
||||||
if($msg === true){
|
if($msg === true and $this->username != ""){
|
||||||
$this->server->api->chat->broadcast($this->username." left the game");
|
$this->server->api->chat->broadcast($this->username." left the game");
|
||||||
}
|
}
|
||||||
console("[INFO] Session with \x1b[36m".$this->ip.":".$this->port."\x1b[0m Client ID ".$this->clientID." closed due to ".$reason);
|
console("[INFO] Session with \x1b[36m".$this->ip.":".$this->port."\x1b[0m Client ID ".$this->clientID." closed due to ".$reason);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user