Import the library into your plugin - PlayerNguyen/PlayerNguyenCore GitHub Wiki
You can both use the building tool (like Maven, Gradle) or import the PlayerNguyenCore to the current project via IDE.
Warning: With building tool, you must create fat-jar which will compile all require jar object to work normally.
PlayerNguyenCore using JitPack.io to build the latest release version whenever it's updating so that you can easily import it to your project.
- You must add below code to your pom.xml:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
- Then put the depency after the
depencies
tags. Replace{your_version}
with the version of core that you want:
<dependency>
<groupId>com.github.PlayerNguyen</groupId>
<artifactId>PlayerNguyenCore</artifactId>
<version>{your_version}</version>
</dependency>
- Open
build.gradle
and put this:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
- Then add the dependency classpath to your plugin. Replace
{version}
with the version you want:
dependencies {
implementation 'com.github.PlayerNguyen:PlayerNguyenCore:{version}'
}
- Visit https://jitpack.io/#PlayerNguyen/PlayerNguyenCore for more implementation.
Just download/clone the source code and put it into your plugin source code.