Get XUID from LoginPacket after authentication, add Player->getXuid()

This commit is contained in:
Dylan K. Taylor
2017-10-02 18:51:51 +01:00
parent 088a44ea3a
commit 76117e7fa0
2 changed files with 27 additions and 2 deletions

View File

@ -44,6 +44,8 @@ class LoginPacket extends DataPacket{
/** @var int */
public $clientId;
/** @var string */
public $xuid;
/** @var string */
public $identityPublicKey;
/** @var string */
public $serverAddress;
@ -86,6 +88,9 @@ class LoginPacket extends DataPacket{
if(isset($webtoken["extraData"]["identity"])){
$this->clientUUID = $webtoken["extraData"]["identity"];
}
if(isset($webtoken["extraData"]["XUID"])){
$this->xuid = $webtoken["extraData"]["XUID"];
}
}
if(isset($webtoken["identityPublicKey"])){