How to create linked leaderboards
AlonsoAliaga edited this page Jan 9, 2021
·
2 revisions
Getting started
- Commands
- Placeholders
- How to place leaderboards
- How to create leaderboards
- How to create linked leaderboards
Community
Features
Plugin stats
Developer zone
Clone this wiki locally
How to create linked leaderboards (ADDED IN 🔰 1.0-BETA)
To create leaderboards based on placeholders from PlaceholderAPI follow make sure the following:
- PlaceholderAPI is installing and working correctly.
- The placeholder you want to use returns a integer or double (decimals)
- The display placeholder you want to use is working (doesn't return same placeholder)
- Make sure the identifier you want doesn't exist already or was added by other plugin.
You can now move to the next step!
Creating leaderboards based on placeholders from PlaceholderAPI and displaying other!
For this example we will use the following information:\
- Our identifier will be "top-leagues".
- Placeholder used will be %alonsoleagues_points% which returns player points in AlonsoLeagues plugin.
- Placeholder we want to display will be %alonsoleagues_league_display% which returns player league with colors (string) in AlonsoLeagues plugin.
- Delay time for updates will be 1 minute. (Value: 1)
- Order will be decreasing (Highest to lowest) (Value: true)
- We don't want decimal support. (Value: false)
⚠️ Let's start!
- Type the command
/alonsoleaderboards createlinkedand DON'T RUN IT! - Type the identifier you want. In this case "top-leagues" and add space.
- Type the placeholder to be tracked. In this case %alonsoleagues_points% and add space.
- Type the placeholder to be displayed. In this case %alonsoleagues_league_display% and add space.
- Type the delay for updates/save data. In this case
1and add space. - Type order value, since we want it to be highest to lowest it will be true.
- Since this is a points leaderboard, we disable decimal support.
- Final command will look like this:
/alonsoleaderboards createlinked top-leagues %alonsoleagues_points% %alonsoleagues_league_display% 1 true false - Run the command.
🎉 CONGRATULATIONS! LINKED LEADERBOARD IS NOW CREATED!
Tracked data will now be provided by %alonsoleagues_points% but displayed data will be %alonsoleagues_league_display%!
Follow this guide to use and test your leaderboards.
AlonsoLeaderboards - Developed by AlonsoAliaga