ProtocolLib Plugin lets other server plugins read, write, and change Minecraft packets safely. It works as a shared library for Bukkit and Spigot servers and does nothing on its own. Instead of fixed names, this plugin checks field types and packages automatically, so connected plugins stay stable across game updates. It also brings a background compiler for faster speed, an auto updater, and built-in debug commands with JavaScript packet filters. Server admins can track plugin CPU times, view active packet listeners, and adjust update or privacy settings in the config file.

Support

  • Please create a issue with as much information as possible if you experience a problem that has not already been reported. Comments with a huge stack trace will be deleted.
  • If you need help with the API, please use the issue tracker. If your question cannot be made public for whatever reason (including security bugs), send me a personal message instead.

Packet

Add or remove a debug packet listener. This is useful for plugin authors who just wants to see when a packet is sent, and with what content.

Filter

The filter system (introduced in 2.4.1) uses the built-in JavaScript interpreter in JVM 6 (Rhino) to extend the packet command with filtering capabilities – it is now possible to, say, only print entity metadata packet events (packet add server 40) for a given entity ID:

> packet add server 40 true Added listener ListeningWhitelist{priority=MONITOR, packets=[40]} > filter add entity_filter 40 Enter filter program (‘}’ to complete or CANCEL): function(event, packet) { > return packet.a == 1000; >} Added filter entity_filter.

This should be much more convenient than having to compile a test plugin and reload the whole server. Note that this feature is disabled by default for security reasons. To enable it, add “debug: true” to config.yml.

Features:

  • Safe Packet Handling: Lets server plugins read, change, and inject incoming and outgoing Minecraft packets without hooking into the same game classes directly, which stops crashes and hidden bugs.
  • Smart Reflection: Finds field, method, and class names by checking field types, package names, and parameter types instead of fixed names, keeping plugins consistent across different game updates.
  • Background Compiler: Improves server speed automatically by replacing slow reflection with compiled code on the fly.
  • JavaScript Packet Filters: Extends packet debugging with the built-in JVM JavaScript interpreter so you can filter specific packet events, such as showing metadata packets only for a single ID.
  • Auto Updater: Checks for new releases every 43,200 seconds by default, notifies players with the protocol.info permission, and downloads the newest JAR file to apply after the next server restart.
  • Runs quietly in the background as a shared library for Bukkit and Spigot servers without changing gameplay on its own.
  • Uses Minecraft’s in-memory packet format, such as integers instead of shorts or bytes and direct objects like ItemStacks, and works with PacketWrapper so you do not need to decompile game code.
  • Measures CPU time spent by each plugin on the server and displays every active plugin along with the packet types it intercepts.
  • Lets server admins watch live incoming and outgoing packets by ID, range, or name, including a compare option that shows packets before any listener modifies them.
  • Gives admins control over console output and version checks by hiding chosen error or warning reports from logs or forcing the plugin to start on an unlisted Minecraft version.
  • Supports and works alongside many server plugins such as NoCheatPlus, NoLagg, SpoutPlugin, Orebfuscator, DisguiseCraft, CraftBook, TagAPI, TabAPI, BkCommonLib, PropHunt, ScoreboardStats, Scavenger, ItemRenamer, and VanishNoPacket.
  • Sends anonymous usage stats every 10 minutes through bStats, including metrics revision version 6, server GUID, online player count, server version, plugin version, and registered listener names, with an easy option to turn it off in the config file.

Commands:

  • /protocol config: Reloads the plugin configuration file (requires protocol.admin).
  • /protocol check: Checks BukkitDev for a newer version of the plugin (requires protocol.admin).
  • /protocol update: Checks for updates and downloads the latest JAR file automatically, which applies after a server restart (requires protocol.admin).
  • /protocol timings: Turns CPU time tracking on or off for each plugin on the server (requires protocol.admin).
  • /protocol listeners: Shows every active plugin using this library and the packet types each one intercepts (requires protocol.admin).
  • /packet add <side> <ranges> <detailed>: Adds a debug packet listener for the client or server side using a packet ID or range (defaults to 0-255), and prints full packet details when set to true.
  • /packet add <protocol> <sender> <name> <detailed>: Adds a debug packet listener by protocol, sender, and packet name (such as /packet add play server chat true), or uses compare at the end to view packets before listeners change them.
  • /packet remove <side>: Removes one or all debug packet listeners for the client or server side.
  • /packet names <ranges>: Prints the name of every packet ID in the given list or range.
  • /filter add <name> <id>: Adds a custom JavaScript filter for a packet ID when debug: true is enabled in config.yml.

Configuration:

  • auto updater.notify: Alerts players with the protocol.info permission when a new release is available (default: true).
  • auto updater.download: Downloads and installs the newest version automatically to take effect on the next server restart (default: true).
  • auto updater.delay: Sets the wait time in seconds between automatic update checks (default: 43200).
  • auto updater.last: Records the time of the last update check in seconds since 01.01.1970; set to 0 to force a fresh check (default: 0).
  • metrics: Publishes anonymous usage stats every 10 minutes; set to false to opt out (default: true).
  • background compiler: Replaces reflection with compiled code on the fly to improve server performance (default: true).
  • ignore version check: Forces the plugin to start on a specified Minecraft version even if it is not listed as compatible (default: None).
  • suppressed reports: Hides any listed error or warning messages from the console and server log (default: None).
  • debug: Turns on the JavaScript packet filter system in config.yml when set to true (disabled by default for security).

How to Use:

  1. Give yourself the protocol.admin permission so you can run admin commands, and grant staff protocol.info so they see update alerts in chat.
  2. Run /protocol listeners in chat or the server console to see every active plugin using ProtocolLib Plugin and which packet types each one intercepts.
  3. Type /protocol timings to turn on CPU tracking and check how much server processing time each plugin uses.
  4. Run /protocol check to look for a new release, or type /protocol update to download the latest JAR automatically and restart the server so the update takes effect.
  5. Open config.yml to adjust options—such as setting metrics: false to stop stats, setting auto updater.last to 0 to force an update check, or adding debug: true to unlock packet filters—then run /protocol config to reload your changes.
  6. On a test server, run a command like /packet add play server chat true or /packet add client 10-13 true to view live packet output, or use compare instead of true to inspect packets before listeners change them; avoid tracking too many packets on a live server because it can cause crashes.
  7. With debug: true enabled in config.yml, type /filter add <name> <id> (for example, /filter add entity_filter 40), enter a short JavaScript filter rule, and finish with } to save it or type CANCEL to stop.
  8. Run /packet remove client and /packet remove server once testing is complete so all debug packet listeners stop running.

Screenshots:

Minecraft game showing active plugins list
In-game console output listing active server plugins alongside ProtocolLib
Minecraft multiplayer chat showing plugin command outputs
Multiplayer chat window tracking packet listener status during server debugging
Player character standing in a snowy landscape
Player standing across snowy terrain inside a stable multiplayer server
Player standing in a snowy biome with shader graphics
Custom visual shaders rendering a snowy landscape on a multiplayer world

ProtocolLib Plugin Download Links

For All Versions from Minecraft 1.12 to Minecraft 1.15

Download from Server 1 – Download from Server 2

For Minecraft 1.18.x

Download from Server 1 – Download from Server 2

For Minecraft from 1.19 to 1.19.2

Download from Server 1 – Download from Server 2

For Minecraft 1.19.3

Download from Server 1 – Download from Server 2

For Minecraft 1.19.4

Download from Server 1 – Download from Server 2

For Minecraft 1.21.x, 1.20.x

Download from Server 1 – Download from Server 2

Click to rate this post!
[Total: 4 Average: 4.8]