mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Player: add getPlayerInfo(), closes #4450
This commit is contained in:
parent
87dc763d92
commit
3836a57ba6
@ -340,6 +340,12 @@ class Player extends Human implements CommandSender, ChunkListener, IPlayer{
|
||||
return $this->authenticated;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an object containing information about the player, such as their username, skin, and misc extra
|
||||
* client-specific data.
|
||||
*/
|
||||
public function getPlayerInfo() : PlayerInfo{ return $this->playerInfo; }
|
||||
|
||||
/**
|
||||
* If the player is logged into Xbox Live, returns their Xbox user ID (XUID) as a string. Returns an empty string if
|
||||
* the player is not logged into Xbox Live.
|
||||
|
Loading…
x
Reference in New Issue
Block a user