Skip to content

How to create leaderboards

AlonsoAliaga edited this page Dec 2, 2020 · 1 revision

How to create leaderboards (ADDED IN 🔰 1.0-BETA)

To create leaderboards based on placeholders from PlaceholderAPI follow make sure the following:\

  1. PlaceholderAPI is installing and working correctly.
  2. The placeholder you want to use returns a integer or double (decimals)
  3. 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!
  1. Type the command /alonsoleaderboards create and DON'T RUN IT!
  2. Type the identifier you want. In this case "eco-balance" and add space.
  3. Type the placeholder to be tracked. In this case %vault_eco_balance% and add space.
  4. Type the delay for updates/save data. In this case 1 and add space.
  5. Type order value, since we want it to be highest to lowest it will be true.
  6. Since this is a balance leaderboard, we enable decimal support.
  7. Final command will look like this:
    /alonsoleaderboards create eco-balance %vault_eco_balance% 1 true true
  8. Run the command.

    🎉 CONGRATULATIONS! LEADERBOARD IS NOW CREATED!

    Follow this guide to use and test your leaderboards.