Releases: retrooper/packetevents
v1.3.9
Note: ONLY TESTED ON 1.8
- PacketReceiveEvent#getPacketId() added
*PacketType comparing packets should no longer be done with strings, instead with int IDs
Example:
if(PacketReceiveEvent#getPacketId() == PacketType.Client.ARM_ANIMATION)
- Comparing with int ids only finished for client side (serverbound) packets, server side support coming soon
- PacketEvents should be it is started.
It is recommended to load it in the onLoad() function in your main class, ONLY load if you are not using the packetevents jar.
How to load packetevents
PacketEvents.load()
How to start packetevents
PacketEvents.start(plugin);
v1.3.8
- PacketTypeClasses class added for NMS Packet class comparisons
- @PacketHandler(synchronization = EventSynchronization.x) added
v1.3.7.2
v1.3.7
v1.3.6.3
v1.3.6.2
v1.3.6
v1.3.5.2
v1.3.5.1
v1.3.5
1.3.5 RELEASE
This is the most stable version of PacketEvents I have ever released.
I recommend all of you update to this version!
Changelog:
-
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