Import the library into your plugin - PlayerNguyen/PlayerNguyenCore GitHub Wiki

Depends

You can both use the building tool (like Maven, Gradle) or import the PlayerNguyenCore to the current project via IDE.

Import with Java Build Tool

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.

Maven

  • 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>

Gradle

  • 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}'
}

Other

Import by using the manual way

Just download/clone the source code and put it into your plugin source code.

⚠️ **GitHub.com Fallback** ⚠️