packetevents

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

Stars
515
Committers
88

Bot releases are visible (Hide)

packetevents - v1.0.9 Release

Published by retrooper over 4 years ago

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

packetevents - v1.0.8 Release

Published by retrooper over 4 years ago

PacketEvents.getPacketManager().unregisterPacketListener(packetListener); method added.

PacketManager cleaned up.

packetevents - v1.0.7 Release

Published by retrooper over 4 years ago

Examples improved, make sure to always use the up to date versions.

packetevents - v1.0.6 Release

Published by retrooper over 4 years ago

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!

packetevents - v1.0.5 Release

Published by retrooper over 4 years ago

Packet cancelling and enum accessing with reflection added

packetevents - v1.0.4

Published by retrooper over 4 years ago

Small pom.xml changes

packetevents - v1.0.3 Release

Published by retrooper over 4 years ago

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

packetevents - v1.0.1 Release!

Published by retrooper over 4 years ago

The TestExample has been improved.
Please use the this version.

packetevents - 1.0.0

Published by retrooper over 4 years ago

Release of PacketEvents, by Purplex

Related Projects