mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-12 12:55:21 +00:00
Moved chat disconnect broadcast
This commit is contained in:
parent
47c934cee2
commit
1cf2741f96
@ -268,17 +268,17 @@ class Player{
|
|||||||
$this->level->freeAllChunks($this);
|
$this->level->freeAllChunks($this);
|
||||||
$this->spawned = false;
|
$this->spawned = false;
|
||||||
$this->loggedIn = false;
|
$this->loggedIn = false;
|
||||||
|
if($msg === true and $this->username != ""){
|
||||||
|
$this->server->api->chat->broadcast($this->username." left the game");
|
||||||
|
}
|
||||||
$this->buffer = null;
|
$this->buffer = null;
|
||||||
unset($this->buffer);
|
unset($this->buffer);
|
||||||
$this->recoveryQueue = array();
|
$this->recoveryQueue = array();
|
||||||
$this->receiveQueue = array();
|
$this->receiveQueue = array();
|
||||||
$this->resendQueue = array();
|
$this->resendQueue = array();
|
||||||
$this->server->interface->stopChunked($this->CID);
|
$this->server->interface->stopChunked($this->CID);
|
||||||
if($msg === true and $this->username != ""){
|
|
||||||
$this->server->api->chat->broadcast($this->username." left the game");
|
|
||||||
}
|
|
||||||
console("[INFO] \x1b[33m".$this->username."\x1b[0m[/".$this->ip.":".$this->port."] logged out due to ".$reason);
|
|
||||||
$this->server->api->player->remove($this->CID);
|
$this->server->api->player->remove($this->CID);
|
||||||
|
console("[INFO] \x1b[33m".$this->username."\x1b[0m[/".$this->ip.":".$this->port."] logged out due to ".$reason);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user