Skip to content

birthdates/Leaderboards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaderboards

A module-based leaderboard system for Spigot

Entries

Each entry in the leaderboard must be of type LeaderboardItem & Comparable to assist in sorting & formatting

As well as this, if you are provided an array of data from the leaderboard it is sorted (i.e. [0] is the first, [1] second, e.t.c.)

Modules

I've currently implemented some modules including:

  • A sign module to update signs with a format (SignModule)
  • A HolographicDisplays module to have a hologram placeholder update with a format (HolographicDisplaysModule)

To make your own module you can simply implement LeaderboardModule

To register one of these modules, use Leaderboard.registerModule or Leaderboard.registerModules

Events

  • LeaderboardUpdateEvent called on leader board update & provides type Leaderboard

Maven

<dependency>
    <groupId>com.birthdates</groupId>
    <artifactId>leaderboards</artifactId>
    <version>1.0.9</version>
    <scope>compile</scope>
</dependency>

Example

For a code example see here