mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Save offline player data at connect
This commit is contained in:
parent
cb7e9bb572
commit
af1e3e7767
1 changed files with 1 additions and 0 deletions
|
|
@ -260,6 +260,7 @@ class Player{
|
||||||
$this->auth = true;
|
$this->auth = true;
|
||||||
$this->data["lastIP"] = $this->ip;
|
$this->data["lastIP"] = $this->ip;
|
||||||
$this->data["lastID"] = $this->clientID;
|
$this->data["lastID"] = $this->clientID;
|
||||||
|
$this->server->api->player->saveOffline($this->username, $this->data);
|
||||||
$this->dataPacket(MC_LOGIN_STATUS, array(
|
$this->dataPacket(MC_LOGIN_STATUS, array(
|
||||||
"status" => 0,
|
"status" => 0,
|
||||||
));
|
));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue