The Basics

Implement the library

There are two ways to implement the library.

Create a new McRankings instance

McRankings mcRankings = new McRankings(YOUR_PLUGIN_INSTANCE);

or

McRankings mcRankings = new McRankings(YOUR_PLUGIN_INSTANCE).withPluginName("BedwarsPro");

or disable logging non-important messages as well:

McRankings mcRankings = new McRankings(this)
                .withPluginName("BedwarsPro")
                .withoutLogging();

By default McRankings uses the plugin name from the plugin.yml (recommended). The plugin name should not include whitespaces.

Create a new leaderboard

McRankings mcRankings = new McRankings(YOUR_PLUGIN_INSTANCE);
McRankings.Leaderboard leaderboard = mcRankings.getLeaderboard(0, "Bedwars Wins", "Wins", true);

The code above shows you how to create a new leaderboard. It requires the following paramters: