diff --git a/src/player/Player.php b/src/player/Player.php index 9a4563542..14a6b205a 100644 --- a/src/player/Player.php +++ b/src/player/Player.php @@ -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.