-
I want to make a Discord bot, wich reads the leaderbord and returns it on command. To make this possible I need to know, how I (or the bot) can read the leaderbord. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Are you talking about the Top Balances leaderboard ( import net.essentialsx.api.v2.services.BalanceTop;
//...
BalanceTop api = Bukkit.getServer().getServicesManager().load(BalanceTop.class); Take a look at the API interface to see what kind of data you can access. Keep in mind that this service is only available on development builds, so ensure you're using the latest dev build of EssentialsX. |
Beta Was this translation helpful? Give feedback.
-
If by "leaderboard" you mean |
Beta Was this translation helpful? Give feedback.
Are you talking about the Top Balances leaderboard (
/baltop
)? If so, you can use the newBalanceTop
API service. You can access it using the Bukkit ServicesManager as detailed here:Take a look at the API interface to see what kind of data you can access. Keep in mind that this service is only available on development builds, so ensure you're using the latest dev build of EssentialsX.