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
$locale
private
string
$locale
$skin
private
Skin
$skin
$username
private
string
$username
$uuid
private
UuidInterface
$uuid
$xuid
private
string
$xuid
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
Return values
array<string|int, mixed> —getLocale()
public
getLocale() : string
Return values
string —getSkin()
public
getSkin() : Skin
Return values
Skin —getUsername()
public
getUsername() : string
Return values
string —getUuid()
public
getUuid() : UuidInterface
Return values
UuidInterface —getXuid()
public
getXuid() : 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