Releases: retrooper/packetevents
v1.1.0
v1.0.9 Release
Massive optimizations!
Unneeded reflection usages removed.
Now everything is rewritten for each single version, all imports are organized.
Finally support 1.8 -> 1.15 STABLE
v1.0.8 Release
PacketEvents.getPacketManager().unregisterPacketListener(packetListener); method added.
PacketManager cleaned up.
v1.0.7 Release
Examples improved, make sure to always use the up to date versions.
v1.0.6 Release
Massive update
New features:
• LOGIN packet added to Packet.Server
Usage: Packet.Server.LOGIN
-New methods in PacketReceiveEvent and PacketSendEvent:
• getMotionX(), ...Y(), ...Z() now exist, accessing the player's motX, motY and motZ variable.
• getPing(), get the the player's ping
- New methods in PacketSendEvent
• getVelocityEntity(), access the entity in the PacketPlayOutEntityVelocity packet(Packet.Server.ENTITY_VELOCITY)
with reflection, getVelocityEntity() should only be used when the ENTITY_VELOCITY packet was called
- New methods in PacketReceiveEvent
• getInteractedEntity(), get the entity you interacted with in the Packet.Client.USE_ENTITY packet
• getEntityUseAction() returns the enum EntityUseAction, when the Packet.Client.USE_ENTITY packet is received
• getPlayerAction() returns the enum PlayerAction, when the Packet.Client.ENTITY_ACTION packet is received
• getChatMessage() returns the string message in the Packet.Client.CHAT packet
- Send packets to players
• sendPacket(Player player, Object packet)
• sendPacket(Player player, io.netty.channel.Channel channel)
• sendVelocity(Player player, double x, double y, double z)
Use the sendVelocity(...) as an example, to send your own packets.
Ability to send more packets might be added in future releases.(like sendVelocity(..)), as PacketEvents is all about simplicity, but also having enough freedom to do whatever you want and experiment!
v1.0.5 Release
Packet cancelling and enum accessing with reflection added
v1.0.4
v1.0.3 Release
ServerTickEvent has been added!
It is called asynchronously every tick.
TestExample.java class has been updated, an example for the ServerTickEvent has been added!
Check out me/purplex/packetevents/example/TestExample.java
v1.0.1 Release!
The TestExample has been improved.
Please use the this version.