PlayerAPI::remove removes a player from the table by his clientID, packets wont be handled after the player was kicked due to player already ingame

This commit is contained in:
GameHerobrine 2025-07-17 05:27:15 +03:00
parent bbe9e0ee13
commit ba4ccafa32
3 changed files with 8 additions and 3 deletions

View file

@ -2115,8 +2115,8 @@ class Player{
}
$u = $this->server->api->player->get($this->iusername, false);
if($u !== false){
$u = $this->server->clients[$this->CID];
$u->close("this player already in game");
$this->close("this player already in game");
return;
}
$this->server->api->player->add($this->CID);