Nbtproxy

An NBT API designed for Spigot plugins to interact with NBT tags.
Alternatives To Nbtproxy
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Glowstone1,752
2 months ago62otherJava
A fast, customizable and compatible open source server for Minecraft: Java Edition
Essentials1,580
a day ago161gpl-3.0Java
The modern Essentials suite for Spigot and Paper.
Minecraftdev1,152
5 days ago199mitKotlin
Plugin for IntelliJ IDEA that gives special support for Minecraft modding projects.
Viaversion934
a day ago41gpl-3.0Java
Allows the connection of newer clients to older server versions for Minecraft servers.
Skript794
2 days ago441gpl-3.0Java
Skript is a Bukkit plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
Slimefun4736
4 days ago103gpl-3.0Java
Slimefun 4 - A unique Spigot/Paper plugin that looks and feels like a modpack. We've been giving you backpacks, jetpacks, reactors and much more since 2013.
Placeholderapi682
2 days ago17gpl-3.0Java
The best and simplest way to add placeholders to your server! - 1M+ Downloads - 2.5k+ Placeholders
Citizens2470
2 days ago34osl-3.0Java
Citizens - the premier plugin and API for creating server-side NPCs in Minecraft.
Towny411
a day ago105otherJava
Towny Advanced Minecraft plugin for Bukkit/Spigot.
Fastlogin384
5 days ago128mitJava
Checks if a minecraft player has a valid paid account. If so, they can skip offline authentication automatically. (premium auto login)
Alternatives To Nbtproxy
Select To Compare


Alternative Project Comparisons
Readme

NBTProxy

An NBT API designed for Spigot plugins to interact with NBT tags.

A full tutorial on how to use the fancy serialization is on the wiki which you can visit by clicking [here] https://github.com/MrBlobman/NBTProxy/wiki) and the javadocs are over here

Using it in your project

There are 2 options:

  1. Publish the project to your local maven repository and add it to your build script/pom.

    ./gradlew publishApiPublicationToMavenLocal
    

    Then add a gradle or maven dependency with the following: Gradle:

    compile group: 'io.github.mrblobman', name: 'NBTProxy-api', version: '2.1.1'
    

    Maven:

    <dependency>
        <groupId>io.github.mrblobman</groupId>
        <artifactId>NBTProxy-api</artifactId>
        <version>2.1.1</version>
        <scope>provided</scope>
    </dependency>
    
  2. Add the api jar to your classpath. The jars can be downloaded from the releases tab. Link to releases

Checking if the server is running a supported version

Make sure you add "NBTProxy" as a dependency in your plugin.yml.

TagFactory is one of the core utility classes and the get() method will retrieve the appropriate instance for the nms version running on the server. The error message is fairly descriptive and printing it and then disabling the plugin should be sufficient for informing the server administrator.

try {
    TagFactory factory = TagFactory.get();
} catch (UnsupportedOperationException e) {
    //Code to run if there is not a compatible version running on the server
}
Popular Spigot Projects
Popular Plugin Projects
Popular Games Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Java
Plugin
Gradle
Jar
Spigot