mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed #142 Server crash while using whitelist
This commit is contained in:
parent
6763e93a8d
commit
6fb8e754d6
2 changed files with 4 additions and 2 deletions
|
|
@ -258,7 +258,7 @@ class PlayerAPI{
|
|||
$this->server->clients[$CID] = null;
|
||||
unset($this->server->clients[$CID]);
|
||||
$player->close();
|
||||
if($player->username != ""){
|
||||
if($player->username != "" and ($player->data instanceof Config)){
|
||||
$this->saveOffline($player->data);
|
||||
}
|
||||
$this->server->query("DELETE FROM players WHERE name = '".$player->username."';");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue