Mc-Rankings allows you to create awesome leaderboards for your plugins - without any dependency.
Mc-Rankings is no plugin and does not need to be installed on the server. It can be implemented in any plugin without additional jar!
Please join our Discord for support!
Why you need mc-rankings?
mc-rankings allows you as a plugin developer to let your users create awesome web-based leaderboards in seconds. The library is very easy to use and does not require any special knowledge. Join our Discord here.
How it works (Example)
View the full documentation here.
- Implement the maven dependency in your pom.xml
View the full documentation for maven.
- Create a new McRankings instance like below:
Code (Java):
McRankings mcRankings
=
new McRankings
(
this
)
;
- Load a leaderboard (if none exists it will auto create one):
Code (Java):
McRankings.
Leaderboard leaderboard
= mcRankings.
getLeaderboard
(
0,
"Bedwars Wins",
"Wins",
true
)
;
- Set a player score:
Code (Java):
leaderboard.
setScore
(player, score
)
;
- Get the URL:
Code (Java):
leaderboard.
getUrl
(
)
Is this project open-source?
At present, the backend of mc-rankings.com is not open-source. However, in version 1.2.8, we introduced the capability to modify the request endpoint of the library through mc-rankings.yml. This enhancement enables us to create lightweight open-source solutions for individuals interested in self-hosting. We will keep you informed on our
Discord server about any news.