Functionalities
Other
$globalUserLeaderboard
Returns a leaderboard for the specified global user variable in either an ascending or descending state.
Leaderboards only show number values. Therefore, the variable must be a number value

FUNCTION USAGE

  • $globalUserLeaderboard[variable]
  • $globalUserLeaderboard[variable;asc;placeholders]
  • $globalUserLeaderboard[variable;desc;placeholders]

Properties:

variable - The variable to display a leaderboard of. asc - Returns the data in an ascending state, from highest on top. desc - Returns the data in a descending state, from lowest on top. placeholders: {top} - The value sitting in 1st place whether asc or desc {value} - The variables value. {username} - The username associated with that stat. {id} - The users ID associated with that stat. {tag} - The users tag associated with that stat.
Example 1: Numbers will show from the highest numbers first
1
bot.Command({
2
name: "leaderboard",
3
code: `
4
$globalUserLeaderboard[xp;asc]
5
`
6
})
Copied!
Example 2: Numbers will show from the lowest numbers first
1
bot.Command({
2
name: "leaderboard",
3
code: `
4
$globalUserLeaderboard[xp;desc]
5
`
6
})
Copied!
Example
Usages
Responses
1
?leaderboard
1 - Speshul - "16"
2 - LEWS - "14"
3 - CTK - "12"
2
?leaderboard
1 - CTK- "12"
2 - LEWS - "14"
3 - Speshul - "16"
Last modified 5mo ago
Copy link
Contents
Properties: