Skip to content

XboxLivePlayerInfo ​

final class · pocketmine\player\XboxLivePlayerInfo · source

Extends PlayerInfo

Encapsulates player info specific to players who are authenticated with XBOX Live.

Methods ​

__construct() ​

php
public function __construct(string $xuid, string $username, \Ramsey\Uuid\UuidInterface $uuid, \pocketmine\entity\Skin $skin, string $locale, array $extraData = [], ?\pocketmine\network\mcpe\protocol\types\skin\SkinData $networkSkinData = null)

getXuid() ​

php
public function getXuid() : string

withoutXboxData() ​

php
public function withoutXboxData() : \pocketmine\player\PlayerInfo

Returns a new PlayerInfo with XBL player info stripped. This is used to ensure that non-XBL players can't spoof XBL data.

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.