Documentation

XboxLivePlayerInfo extends PlayerInfo
in package

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

Table of Contents

$extraData  : array<string|int, mixed>
$locale  : string
$skin  : Skin
$username  : string
$uuid  : UuidInterface
$xuid  : string
__construct()  : mixed
getExtraData()  : array<string|int, mixed>
getLocale()  : string
getSkin()  : Skin
getUsername()  : string
getUuid()  : UuidInterface
getXuid()  : string
withoutXboxData()  : PlayerInfo
Returns a new PlayerInfo with XBL player info stripped. This is used to ensure that non-XBL players can't spoof XBL data.

Properties

$extraData

private array<string|int, mixed> $extraData
Tags
phpstan-var

array<string, mixed>

Methods

__construct()

public __construct(string $xuid, string $username, UuidInterface $uuid, Skin $skin, string $locale[, array<string|int, mixed> $extraData = [] ]) : mixed
Parameters
$xuid : string
$username : string
$uuid : UuidInterface
$skin : Skin
$locale : string
$extraData : array<string|int, mixed> = []
Return values
mixed

getExtraData()

public getExtraData() : array<string|int, mixed>
Tags
phpstan-return

array<string, mixed>

Return values
array<string|int, mixed>

getLocale()

public getLocale() : string
Return values
string

getUsername()

public getUsername() : string
Return values
string

withoutXboxData()

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

public withoutXboxData() : PlayerInfo
Return values
PlayerInfo

Search results