Save offline player data at connect

This commit is contained in:
Shoghi Cervantes Pueyo 2012-12-26 02:56:42 +01:00
parent cb7e9bb572
commit af1e3e7767

View File

@ -260,6 +260,7 @@ class Player{
$this->auth = true;
$this->data["lastIP"] = $this->ip;
$this->data["lastID"] = $this->clientID;
$this->server->api->player->saveOffline($this->username, $this->data);
$this->dataPacket(MC_LOGIN_STATUS, array(
"status" => 0,
));