ProtocolLib Plugin (1.21.8, 1.20.1) – Smooth Multiplayer Worlds
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.infopermission, 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 (requiresprotocol.admin)./protocol check: Checks BukkitDev for a newer version of the plugin (requiresprotocol.admin)./protocol update: Checks for updates and downloads the latest JAR file automatically, which applies after a server restart (requiresprotocol.admin)./protocol timings: Turns CPU time tracking on or off for each plugin on the server (requiresprotocol.admin)./protocol listeners: Shows every active plugin using this library and the packet types each one intercepts (requiresprotocol.admin)./packet add <side> <ranges> <detailed>: Adds a debug packet listener for theclientorserverside using a packet ID or range (defaults to0-255), and prints full packet details when set totrue./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 usescompareat the end to view packets before listeners change them./packet remove <side>: Removes one or all debug packet listeners for theclientorserverside./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 whendebug: trueis enabled inconfig.yml.
Configuration:
auto updater.notify: Alerts players with theprotocol.infopermission 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 to0to force a fresh check (default:0).metrics: Publishes anonymous usage stats every 10 minutes; set tofalseto 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 inconfig.ymlwhen set totrue(disabled by default for security).
How to Use:
- Give yourself the
protocol.adminpermission so you can run admin commands, and grant staffprotocol.infoso they see update alerts in chat. - Run
/protocol listenersin chat or the server console to see every active plugin using ProtocolLib Plugin and which packet types each one intercepts. - Type
/protocol timingsto turn on CPU tracking and check how much server processing time each plugin uses. - Run
/protocol checkto look for a new release, or type/protocol updateto download the latest JAR automatically and restart the server so the update takes effect. - Open
config.ymlto adjust options—such as settingmetrics: falseto stop stats, settingauto updater.lastto0to force an update check, or addingdebug: trueto unlock packet filters—then run/protocol configto reload your changes. - On a test server, run a command like
/packet add play server chat trueor/packet add client 10-13 trueto view live packet output, or usecompareinstead oftrueto inspect packets before listeners change them; avoid tracking too many packets on a live server because it can cause crashes. - With
debug: trueenabled inconfig.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 typeCANCELto stop. - Run
/packet remove clientand/packet remove serveronce testing is complete so all debug packet listeners stop running.
Screenshots:




How to Install:
New to Minecraft? Follow our step-by-step guide to install Plugins on your PC.View Guide
0












This post has no comments yet. Be the first — your comment will appear here.