Table of contents:
Introduction
In this tutorial, I will show you how to display a level leaderboard using the CyberLevels placeholders. This mainly serves a purpose of displaying the top 10 players with the highest level and experience points. You can use this anywhere, but it’s most commonly used in holograms, scoreboard, or chat.
Enable leaderboard
Go to config.yml
in CyberLevels plugin folder and set leaderboard.enabled
to true
. The leaderboard is always synced in the same period as the auto-save option.
What placeholders can you use?
You can use the following placeholders to display the leaderboard:
%clv_leaderboard_name_<position>%
- Outputs the player name on the specified position%clv_leaderboard_level_<position>%
- Outputs the player level on the specified position%clv_leaderboard_exp_<position>%
- Outputs the player experience points on the specified position
Example of setting up a leaderboard
You can use the following placeholders to display the leaderboard (just copy them and paste them wherever you want to display the leaderboard):
- '%clv_leaderboard_name_1% %clv_leaderboard_level_1% %clv_leaderboard_exp_1%'
- '%clv_leaderboard_name_2% %clv_leaderboard_level_2% %clv_leaderboard_exp_2%'
- '%clv_leaderboard_name_3% %clv_leaderboard_level_3% %clv_leaderboard_exp_3%'
- '%clv_leaderboard_name_4% %clv_leaderboard_level_4% %clv_leaderboard_exp_4%'
- '%clv_leaderboard_name_5% %clv_leaderboard_level_5% %clv_leaderboard_exp_5%'
- '%clv_leaderboard_name_6% %clv_leaderboard_level_6% %clv_leaderboard_exp_6%'
- '%clv_leaderboard_name_7% %clv_leaderboard_level_7% %clv_leaderboard_exp_7%'
- '%clv_leaderboard_name_8% %clv_leaderboard_level_8% %clv_leaderboard_exp_8%'
- '%clv_leaderboard_name_9% %clv_leaderboard_level_9% %clv_leaderboard_exp_9%'
- '%clv_leaderboard_name_10% %clv_leaderboard_level_10% %clv_leaderboard_exp_10%'
Note
Please note that you can’t check specified player’s position in the leaderboard. You can only check leaderboard placeholders for the TOP X players.