PacketEvents is emerging as a strong contender in the realm of Minecraft packet processing libraries. Designed to simplify packet manipulation while delivering high performance, this powerful tool aims to demystify the complexities of projects utilizing packets.
GPL-3.0 License
Bot releases are visible (Hide)
Published by retrooper about 4 years ago
Published by retrooper about 4 years ago
Special thank you to our contributors for helping me maintain this API.
Published by retrooper about 4 years ago
Published by retrooper about 4 years ago
Published by retrooper over 4 years ago
• Shutdown errors, caused by pending reloads FIXED
• Auto resolve client version setting added, it will set the client version to the server's version if the client version fails to resolve
• toProtocolVersion() added in ServerVersion
Will cause errors.
Published by retrooper over 4 years ago
Published by retrooper over 4 years ago
AS THIS IS A PRE RELEASE, IT IS RECOMMENDED NOT TO BE USED
Published by retrooper over 4 years ago
PacketEvents.getAPI().getPlayerUtilities().getPlayerPing(player); deprecated, use getPing(player);
ServerTickEvent deprecated and it's Bukkit task too, will be removed in the next VersionLookupUtils
PacketEvents.getAPI().getSettings().setDefaultServerVersion(version); added
Settings the default version will let PacketEvents use the default version if PacketEvents fails to detect your server version.
No idea why this happens in a spigot fork by the name of mSpigot, but yea.
Published by retrooper over 4 years ago
WrappedPacketOutEntity added, which can be used for Rel entity move and rel entity movelook and entity look aswell!
Now possible to register/unregister multiple listeners in one method call.
PacketEvents.getAPI().getEventManager().registerListeners(LISTENER, LISTENER2);
PacketEvents.getAPI().getEventManager().unregisterListeners(LISTENER, LISTENER2);
Published by retrooper over 4 years ago
if(PacketReceiveEvent#getPacketId() == PacketType.Client.ARM_ANIMATION)
How to load packetevents
PacketEvents.load()
How to start packetevents
PacketEvents.start(plugin);
Published by retrooper over 4 years ago
Published by retrooper over 4 years ago
Published by retrooper over 4 years ago
• Most clientbound wrappers tested, it is assumed the rest will work
• Official 1.16.1 Support
• All bugs from 1.3.6.2 fixed
• Wrote a custom Reflection utils, much cleaner code now with auto caching
Published by retrooper over 4 years ago
Published by retrooper over 4 years ago
All issues fixed with netty listener. Apologize for all these bugs.
Published by retrooper over 4 years ago
Published by retrooper over 4 years ago
Published by retrooper over 4 years ago
Published by retrooper over 4 years ago
This is the most stable version of PacketEvents I have ever released.
I recommend all of you update to this version!
TinyProtocol removed
API Size way smaller
PlayerUninjectEvent is now called
Version lookup methods re-added, but version lookup is only possible with ProtocolSupport or ViaVersion plugin avaialable on the server.
If you try looking up version and none of the listed plugins could be found, you will result with ClientVersion.ACCESS_FAILURE
WrappedPacketOutAbilities sendable wrapper added
PostPlayerInjectEvent has been deprecated, please use PlayerInjectEvent
PlayerUninjectEvent now cancellable
PlayerInjectEvent or PlayerUninjectEvent cancelling, will cancel the action.
pom.xml version updated to 1.3.5
Packet class has been deprecated, please use PacketType instead!
Packet.isInstanceOfFlyingPacket(nmsPacket) -> PacketType.Util.isInstanceOfFlyingPacket(nmsPacket), and more instanceof functions are added in the PacketType.Util class too!
PacketReceiveEvent#getPacket() is deprecated, please use PacketReceiveEvent#getNMSPacket()
PacketSendEvent#getPacket() is deprecated, please use PacketSendEvent#getNMSPacket()
PacketEvents.setShouldKickOnRestart(boolean) removed