Skip to content

Placeholders

AlonsoAliaga edited this page Dec 9, 2020 · 4 revisions

Placeholders

Available placeholders for PlaceholdersAPI.
AlonsoLeaderboards offer some alternatives to use with PlaceholdersAPI.

IDENTIFIER must be replaced with leaderboard identifier. Example: aleagues-points
RANKING must be replaced with leaderboard ranking you want. Example: 1 the first position.

⚠ Keep in mind that all strings returned are defined by other plugins. Not AlonsoLeaderboards.

%alonsoleaderboards_developer%

Returns plugin developer.
Example: AlonsoAliaga

%alonsoleaderboards_version%

Returns plugin version.
Example: 0.1-BETA

%alonsoleaderboards_ranking_IDENTIFIER_RANKING%

Returns ranking format or data not found as defined in expansion.
Example: 1. AlonsoAliaga - 12000 or Data not found :(

%alonsoleaderboards_ranking_fixed_IDENTIFIER_RANKING%

Returns ranking format as defined in expansion or null (the same placeholder string) if not found.
⚠ You should not use this in servers. It's orientated to developers only.
Example:
Placeholder: %alonsoleaderboards_ranking_aleagues-points_1%
Output: 1. AlonsoAliaga - 12000 or %alonsoleaderboards_ranking_aleagues-points_1%

%alonsoleaderboards_ranking_name_IDENTIFIER_RANKING%

Returns player name in the ranking or name not found as defined in expansion.
Example:
Placeholder: %alonsoleaderboards_ranking_name_aleagues-points_1%
Output: AlonsoAliaga or No name

%alonsoleaderboards_ranking_name_fixed_IDENTIFIER_RANKING%

Returns player name in the ranking or null (the same placeholder string) if not found.
⚠ You should not use this in servers. It's orientated to developers only.
Example:
Placeholder: %alonsoleaderboards_ranking_name_fixed_aleagues-points_1%
Output: AlonsoAliaga or %alonsoleaderboards_ranking_name_fixed_aleagues%

%alonsoleaderboards_ranking_score_IDENTIFIER_RANKING%

Returns score from player in the ranking or score not found as defined in expansion.
Example:
Placeholder: %alonsoleaderboards_ranking_score_aleagues-points_1%
Output: 12000 or No score

%alonsoleaderboards_ranking_score_fixed_IDENTIFIER_RANKING%

Returns score from player in the ranking or null (the same placeholder string) if not found.
⚠ You should not use this in servers. It's orientated to developers only.
Example:
Placeholder: %alonsoleaderboards_ranking_score_fixed_aleagues-points_1%
Output: 12000 or %alonsoleaderboards_ranking_score_fixed_aleagues-points_1%

%alonsoleaderboards_ranking_position_IDENTIFIER%

Returns ranking for player in leaderboard or 0 if not found.
Example:
Placeholder: %alonsoleaderboards_ranking_position_aleagues-points%
Output: 1 or 0

%alonsoleaderboards_ranking_position_fixed_IDENTIFIER%

Returns ranking for player in leaderboard or null (the same placeholder string) if not found.
⚠ You should not use this in servers. It's orientated to developers only.
Example:
Placeholder: %alonsoleaderboards_ranking_position_fixed_aleagues-points%
Output: 1 or %alonsoleaderboards_ranking_position_fixed_aleagues-points%

%alonsoleaderboards_ranking_position_IDENTIFIER_TARGET%

Returns ranking for specified player in leaderboard or 0 if not found.
Example:
Placeholder: %alonsoleaderboards_ranking_position_aleagues-points_AlonsoAliaga%
Output: 1 or 0

%alonsoleaderboards_ranking_position_fixed_IDENTIFIER_TARGET%

Returns ranking for specified player in leaderboard or null (the same placeholder string) if not found.
⚠ You should not use this in servers. It's orientated to developers only.
Example:
Placeholder: %alonsoleaderboards_ranking_position_fixed_aleagues-points_AlonsoAliaga%
Output: 1 or %alonsoleaderboards_ranking_position_fixed_aleagues-points_AlonsoAliaga%

%alonsoleaderboards_watch_time_to_update_IDENTIFIER_TARGET% (🔰 ADDED IN 1.3-BETA)

Returns time before next update in watch format.
Example:
Placeholder: %alonsoleaderboards_watch_time_to_update_aleagues-points%
Output: 00:50

%alonsoleaderboards_format_time_to_update_IDENTIFIER_TARGET% (🔰 ADDED IN 1.3-BETA)

Returns time before next update in human readable format.
Example:
Placeholder: %alonsoleaderboards_format_time_to_update_aleagues-points%
Output: 0m 50s