tab playerlist fix

This commit is contained in:
GameHerobrine 2023-01-10 16:45:04 +03:00
parent 38d4bd6644
commit 37d36db465

View file

@ -477,11 +477,12 @@ class PlayerAPI{
$this->saveOffline($player->data);
}
$this->server->query("DELETE FROM players WHERE name = '" . $player->username . "';");
$this->server->api->entity->remove($player->eid);
if($player->entity instanceof Entity){
unset($player->entity->player);
//unset($player->entity);
}
$this->server->api->entity->remove($player->eid);
$player = null;
unset($player);
}