Skip to content

Jake-Moore/KamiCommonNMS

Repository files navigation

 

Latest Release Latest Release

The 'Last NMS Update' may not match the latest Minecraft Version.
This is okay, as NMS updates are not always required for every Minecraft version.

Repo: Luxious Repository

KamiCommonNMS

  • The NMS (net.minecraft.server) portion of the KamiCommon library.
  • On August 31, 2024, this library was removed from KamiCommon into its own repository.
  • It aims to provide nms access while supporting versions 1.8.X to LATEST

JavaDoc

Disclaimers

  • 1.17+ only officially supports Paper as the server software.
  • This library requires Java 21 to be used, as such any version of server jar must be runnable on Java 21 as well.
    • It is highly likely older versions need to be specially compiled for Java 21.

Transitive Dependencies

This nms project includes a few libraries it needs to compile and enforce cross-version support. They are:

These libraries are not shaded. They are defined as transitive dependencies for upstream projects to use as they see fit.

  • If you already have these on the classpath, you can exclude them in the dependency
  • If you plan to shade this library, and you don't exclude them, they will be shaded as well.
    • just remember to relocate item-nbt-api (as described on their wiki)

Using the Library

As a sub-project of KamiCommon, this library is published under that project's package.
You'll find its code under the package com.kamikazejam.kamicommon, and published under com.kamikazejam.kamicommon:spigot-nms

Repository Information

Add the following Repository to your build file.

Maven [pom.xml]:

<repository>
  <id>luxious-public</id>
  <name>Luxious Repository</name>
  <url>https://repo.luxiouslabs.net/repository/maven-public/</url>
</repository>

Gradle (kotlin) [build.gradle.kts]:

maven {
    name = "luxiousPublic"
    url = uri("https://repo.luxiouslabs.net/repository/maven-public/")
}

Gradle (groovy) [build.gradle]:

maven {
  name "luxiousPublic"
  url "https://repo.luxiouslabs.net/repository/maven-public/"
}

Dependency Information

Add the following dependency to your build file.
Replace {VERSION} with the version listed at the top of this page.

Maven Dependency [pom.xml]

<dependency>
  <groupId>com.kamikazejam.kamicommon</groupId>
  <artifactId>spigot-nms</artifactId>
  <version>{VERSION}</version>
  <scope>compile</scope>
</dependency>

Gradle Dependency (groovy) [build.gradle]

implementation "com.kamikazejam.kamicommon:spigot-nms:{VERSION}"

Gradle Dependency (kotlin) [build.gradle.kts]

implementation("com.kamikazejam.kamicommon:spigot-nms:{VERSION}")

About

A NMS Library for Minecraft Plugin Development [1.8.x-1.21.X]

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages