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
- 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
- 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.
This nms project includes a few libraries it needs to compile and enforce cross-version support. They are:
- com.github.cryptomorin:XSeries
- de.tr7zw:item-nbt-api
- com.github.fierioziy.particlenativeapi:ParticleNativeAPI
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)
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
Add the following Repository to your build file.
<repository>
<id>luxious-public</id>
<name>Luxious Repository</name>
<url>https://repo.luxiouslabs.net/repository/maven-public/</url>
</repository>maven {
name = "luxiousPublic"
url = uri("https://repo.luxiouslabs.net/repository/maven-public/")
}maven {
name "luxiousPublic"
url "https://repo.luxiouslabs.net/repository/maven-public/"
}Add the following dependency to your build file.
Replace {VERSION} with the version listed at the top of this page.
<dependency>
<groupId>com.kamikazejam.kamicommon</groupId>
<artifactId>spigot-nms</artifactId>
<version>{VERSION}</version>
<scope>compile</scope>
</dependency>implementation "com.kamikazejam.kamicommon:spigot-nms:{VERSION}"implementation("com.kamikazejam.kamicommon:spigot-nms:{VERSION}")