Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a player in a leaderboard from the API

Hierarchy

  • LeaderboardPlayer

Index

Constructors

Private constructor

Properties

Optional class

class?: ClassType

The ClassType that earns the player their spot on the leaderboard

Only set if the requested scope was SOLO
.

Optional kills

kills?: number

The nether kills of the player

Only set if the type of the request was PVP
.

Optional level

level?: number

The respective level of the player

Only set if the type of the request wasn't PVP.

name

name: string

The account name of the player

playtime

playtime: number

The playtime of the player

rank

rank: RankData

The rank information of the player

The displayTag and veteran properties are currently always false, unless both are true.

uuid

uuid: string

The UUID of the player

readonly

Optional xp

xp?: number

The additional XP the player has gathered beyond their current level

Only set if the type of the request wasn't PVP.

Methods

fetchPlayer

  • Fetches the player stats of the player

    This method causes API requests.

    Parameters

    Returns Promise<Player>

Generated using TypeDoc