mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Fixed disconnection
This commit is contained in:
parent
bf1b00f0e6
commit
19b3ac4a99
@ -276,6 +276,9 @@ class Player{
|
||||
$this->resendQueue = array();
|
||||
$this->server->interface->stopChunked($this->CID);
|
||||
$this->server->api->player->remove($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);
|
||||
}
|
||||
}
|
||||
@ -1217,9 +1220,9 @@ class Player{
|
||||
if($this->spawned !== false){
|
||||
break;
|
||||
}
|
||||
$this->spawned = true;
|
||||
$this->server->api->player->spawnAllPlayers($this);
|
||||
$this->server->api->player->spawnToAllPlayers($this);
|
||||
$this->spawned = true;
|
||||
$this->server->api->entity->spawnAll($this);
|
||||
$this->server->api->entity->spawnToAll($this->entity);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user