mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
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:
parent
bbe9e0ee13
commit
ba4ccafa32
3 changed files with 8 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue