Developer API¶
MiningLevels can be used as a dependency in your own plugins.
Maven (JitPack)¶
Add the JitPack repository and the MiningLevels dependency to your pom.xml:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.ChafficPlugins</groupId>
<artifactId>MiningLevels</artifactId>
<version>LATEST</version>
<scope>provided</scope>
</dependency>
</dependencies>
Replace LATEST with a specific version tag from GitHub Releases for reproducible builds.
Gradle (JitPack)¶
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.ChafficPlugins:MiningLevels:LATEST'
}
Usage¶
Add MiningLevels as a dependency or soft-dependency in your plugin.yml:
For available API classes and methods, refer to the source code.