mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Save offline player data at connect
This commit is contained in:
parent
cb7e9bb572
commit
af1e3e7767
@ -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…
x
Reference in New Issue
Block a user