Skip to content

@zikeji/hypixel / getPlayerRank

Function: getPlayerRank()

getPlayerRank(player, onlyPackages?): PlayerRank

Get an PlayerRank object describing the player's rank in more detail without the need to figure out how to parse it yourself.

Parameters

player

NonNullable<object & PlayerData>

The result of client.player.uuid().

onlyPackages?

boolean = false

Whether to ignore their staff / youtube rank and only get their donor rank.

Returns

PlayerRank

Released under the MIT License.