mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Get XUID from LoginPacket after authentication, add Player->getXuid()
This commit is contained in:
@ -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"])){
|
||||
|
Reference in New Issue
Block a user