default placeholder: %gs_<statistic key>-<top / player>-<name / value / uuid>-<number>%
Example: %gs_TOTAL_WORLD_TIME_SUM-top-name-1% | Morelaid %gs_TOTAL_WORLD_TIME_SUM-top-value-1% | 1d 12h 35m %gs_TOTAL_WORLD_TIME_SUM-player-value-morelaid% | 1d 12h 35m | for the player morelaid %gs_
TOTAL_WORLD_TIME_SUM-player-place-morelaid% |
3 | the place
for the player morelaid
List of keys: Use "
/gs keystofile" to get the full key list (w
hen at least one player has been saved in the database).
For example, to display a top 10 list of player statistics, the command "/gholo addrow testmove 1. %gs_WALK_ONE_CM_SUM-top-name-1% | %gs_WALK_ONE_CM_SUM-top-value-1%" must be executed in the GHolo example. And manually 10 times with the change of the number at the end of the placeholders and also at the beginning for the placement. With the command "/gsexecute" this can be simplified as follows and only needs to be executed once because GlobalStats does the rest: "/gsexecute 10 gholo addrow testmove %gscounter%. %gs_WALK_ONE_CM_SUM-top-name-%gscounter%% | %gs_WALK_ONE_CM_SUM-top-value-%gscounter%%". This will execute the command after the number 10 times and replace the variable "%gscounter%" with the current number. If you want to create a top 5 list with one command, the first paramater (the 10) is changed to a 5.
The exact command after the number depends on the plugin used, so this is an example for GHolo.
/gs add [placeholder from papi] <alias>
If, as an example, you want to create a leaderboard for the players who have received the most drops from StreamingDrops, this can be done as follows:
The first parameter after the "add" specifies the placeholder of the (external) plugin. After that, an alternative name can optionally be used. This is relevant for later use. In this case "playerdrops" was used as an alternative name (alias). This results in the statistic key is "playerdrops" (so always the alias is the statistic key). The data is then updated per player after the next refresh of GlobalStats or manually by the command "/gs reload".
A minus sign or space character can NOT be used in an alias.