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)

The ProtocolLib plugin supports platforms: PCPE



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.
timings: Toggle measuring the amount of CPU time spent by each plugin.
listeners: Display what plugins are using ProtocolLib, and the packet types they are intercepting.
Logs hex representations of the provided packets to a file or to console
Syntax: /packetlog <protocol> <sender> <packet> [file/console]
Accepted packets can be found here.

All of these commands require the permission protocol.admin.

Discussion ProtocolLib

  • 30 minutes ago
    Minecraft StatisticThis is plugin ProtocolLib page. You can ask questions here and our community will try to help you!





ProtocolLib versions

4.4.0 489
4.3.0 104
3.6.5 61
3.6.4 51
4.2.1 27
3.4.0 26
4.2.0 19
3.7.0 9
3.7 5
3.3.1 4
3.1.0 2
4.1.0 2
4.3.1 2
3.6.0 2
3.6.3 1
4.0.1 1