Source-checkedAdmin & protection

ProtocolLib

by dmulloy2 · for Minecraft

Provides read/write access to the Minecraft protocol

3.5MDownloads
15 mo agoLast updated
Spigot · PaperLoaders
1.21Latest game version

About ProtocolLib

From SpigotMC

Provides read/write access to the Minecraft protocol

ProtocolLib
Use the dev build for 1.8 through 26.2

Thanks for over 3 million downloads everyone!

If you love ProtocolLib or it has made your life significantly easier, consider a one-time donation, sponsoring the project or leaving a positive review below. It really means a lot!

Certain tasks are impossible to perform with the standard Bukkit API and may require working with and even modifying Minecraft directly. A common technique is to modify incoming and outgoing packets or to inject custom packets into the stream. This is quite cumbersome to do, however, and most implementations will break as soon as a new version of Minecraft has been released, mostly due to obfuscation.

ProtocolLib is a library that allows read and write access to the Minecraft protocol. It handles most of the overhead required with reflection and channel injection and provides wrappers to simplify packet modification. It is updated with most Minecraft updates so, ideally, individual plugins don't have to. ProtocolLib often doesn't need to be updated for minor updates, especially if there are few code changes (i.e. the 1.8 security updates)

Useful Links

Support
Before reporting a bug:
  • Look for an update for ProtocolLib, there's a good chance your error or bug has already been fixed.
  • Read the stack trace and make sure it's an error with ProtocolLib. ProtocolLib's package is com.comphenix.protocol. If you don't see that anywhere, it's not ProtocolLib.
  • Check the common errors wiki page.
When reporting a bug:
  • Use the issue tracker! Don't report bugs in the reviews. Please search for duplicates before reporting a new issue!
  • Provide as much information as possible. Provide your ProtocolLib version and Spigot version.
  • Provide any stack traces or "errors" using pastebin.
For server operators
Just download ProtocolLib from the link above. It doesn't do anything on its own, it simply allows other plugins to function.

For developers
A somewhat dated tutorial can be found here. A new tutorial is in progress on the wiki.

TinyProtocol
There is a lightweight alternative to ProtocolLib called TinyProtocol. It is essentially a mechanism to send and receive raw packets without structure modifiers or wrappers. It can be found here.

Maven repository
If you're using Maven, you'll be able to automatically download the jar, JavaDoc and associated sources from Maven Central. This repository is included by default if you're using Maven, but you must declare it explicitly in Gradle:
Code (Java):
repositories {
    mavenCentral ( )
}
Then add it as a dependency like so:
HTML:
<dependencies>
  <dependency>
    <groupId>net.dmulloy2 </groupId>
    <artifactId>ProtocolLib </artifactId>
    <version>5.4.0 </version>
  </dependency>
  <!-- And so on -->
</dependencies>
Gradle:
Code (Java):
dependencies {
   compileOnly 'net.dmulloy2:ProtocolLib:5.4.0'
}
NOTE: Previously the groupId was com.comphenix.protocol, but it was recently changed to net.dmulloy2 due to the Maven Central migration.

Commands
Protocol
Main administrative command. Supports the following sub-commands:
  • config: Reload the configuration file.
  • check: Check for new versions on BukkitDev.
  • version: Displays the currently running version of ProtocolLib.

Read the full description on SpigotMC →

Highlights

From source data

Game versions

Supports 15 Minecraft versions, the newest being 1.21.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

ProtocolLib on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
5.4.0, released 2025-08-09

Game versions by loader

LoaderGame versionsNewest
Paper1.8 to 1.21 (15 versions)1.21
Spigot1.8 to 1.21 (15 versions)1.21

From 10 recorded builds of ProtocolLib.

Recent builds

BuildReleasedGame versionsLoaders
5.4.02025-08-091.8 to 1.21 (15 versions)Spigot, Paper
5.3.02024-10-20n/aSpigot, Paper
5.2.02024-04-07n/aSpigot, Paper
5.1.02023-08-05n/aSpigot, Paper
5.0.02023-05-12n/aSpigot, Paper
4.8.02022-03-04n/aSpigot, Paper

Run ProtocolLib on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Admin”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

SpigotMC lists ProtocolLib as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
1.21 and 14 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-01Open ↗
  • ✓Authordmulloy2, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

ProtocolLib, answered

Generated from the mod’s own source data.

Do my players need to install ProtocolLib?

SpigotMC lists ProtocolLib as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. ProtocolLib is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run ProtocolLib on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add ProtocolLib in one click.