API
Developer API Guide
The API allows developers to access the global Player leveler and assign players XP or a specific level. You can also register Custom reward types and reward auto-correctors.
Add the API to your project
Maven (not recommended)
I won't help you if you use Maven. Use gradle. You might also need to include Aikars ACF repo when you use maven.
<repository>
<id>auroramc</id>
<url>https://repo.auroramc.gg/releases/</url>
</repository><dependency>
<groupId>gg.auroramc</groupId>
<artifactId>AuroraLevels</artifactId>
<version>{VERSION}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>gg.auroramc</groupId>
<artifactId>Aurora</artifactId>
<version>{VERSION}</version>
<scope>provided</scope>
</dependency>Gradle (Groovy)
Gradle (Kotlin)
Get the API instance
Add XP to a player
Add custom reward types
Example command reward. (This is already implemented.)
Example money reward. (This is already implemented.)
Register your rewards (This has to happen on your plugins onEnable lifecycle method)
Register a reward corrector (This has to happen on your plugins onEnable lifecycle method)
Last updated