How to create leaderboards
AlonsoAliaga edited this page Dec 2, 2020
·
1 revision
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 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)
- 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
For this example we will use the following information:\
- Our identifier will be "eco-balance".
- Placeholder used will be %vault_eco_balance% which returns player balance.
- Delay time for updates will be 1 minute. (Value: 1)
- Order will be decreasing (Highest to lowest) (Value: true)
- We want decimal support. (Value: true)
⚠️ Let's start!
- Type the command
/alonsoleaderboards createand DON'T RUN IT! - Type the identifier you want. In this case "eco-balance" and add space.
- Type the placeholder to be tracked. In this case %vault_eco_balance% 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 balance leaderboard, we enable decimal support.
- Final command will look like this:
/alonsoleaderboards create eco-balance %vault_eco_balance% 1 true true - Run the command.
🎉 CONGRATULATIONS! LEADERBOARD IS NOW CREATED!
Follow this guide to use and test your leaderboards.
AlonsoLeaderboards - Developed by AlonsoAliaga