Developer API
danger
The API is still in development and may change in the future. Use at your own risk!
Join our Discord server to stay updated.
Dependency
Put the plugin's jar file in a folder within your project:
note
- Maven
- Gradle
<dependency>
<groupId>dev.pixelstudios</groupId>
<artifactId>EpicAchievements</artifactId>
<version>{version}</version>
<scope>system</scope>
<systemPath>${project.basedir}/libs/EpicAchievements.jar</systemPath>
</dependency>
dependencies {
compileOnly files('libs/EpicAchievements.jar')
}
Usage
Events
You can listen to the events located in the dev.pixelstudios.achievements.api.events
package.
Methods
The AchievementsAPI
class provides methods for registering custom tasks, rewards and conditions (use the built-in implementations as a reference) and other useful utility methods.