mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
Fixed #142 Server crash while using whitelist
This commit is contained in:
@@ -635,7 +635,9 @@ class Player{
|
||||
$this->data->set("lastIP", $this->ip);
|
||||
$this->data->set("lastID", $this->clientID);
|
||||
|
||||
$this->server->api->player->saveOffline($this->data);
|
||||
if($this->data instanceof Config){
|
||||
$this->server->api->player->saveOffline($this->data);
|
||||
}
|
||||
$this->dataPacket(MC_LOGIN_STATUS, array(
|
||||
"status" => 0,
|
||||
));
|
||||
|
Reference in New Issue
Block a user