Installation
Add NextLib to your plugin via JitPack and declare the dependency.
Gradle
build.gradle
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly 'com.github.chi2l3s:next-lib:1.0.0'
// or shade it:
// implementation 'com.github.chi2l3s:next-lib:1.0.0'
}Maven
pom.xml
<repositories>
<repository>
<id>jitpack</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.chi2l3s</groupId>
<artifactId>next-lib</artifactId>
<version>1.0.0</version>
<scope>provided</scope>
</dependency>
</dependencies>plugin.yml
plugin.yml
name: MyPlugin
main: com.example.MyPlugin
version: 1.0.0
api-version: 1.16
depend:
- NextLibAlternatively, shade NextLib into your plugin and instantiate API classes directly (e.g., new ColorUtilImpl()).