Releases: Anarchick/skript-packet
Releases · Anarchick/skript-packet
Big update - Everythings is improve
Use ProtocolLib 4.6.0+
FIX
- Better performance for huge packet like PacketPlayOutMapChunk
CHANGED
- Convert a number to int/float/long/double/short/byte [array] is now split in 2 expressions
- Packet can be send/received without calling skript event ! (nice to avoid infinite loop)
- Packet event support priority lowest/low/normal/high/highest/monitor
- More NMS getter
- Minor syntax change to match with ThatPacketAddon and help you to migration 👍
ADDED
- Receive Packet
- Packet update entity (easy way to reveal an hidden entity)
- Get an entity from his ID
- Get the NMS biome ID (not guaranted to be up to date)
- Get the deep clone of a packet
- Get the shallow clone of a packet
- Get, Set, Delete or Reset a packet Meta, you can store anything in extra datas of ProtocolLib's packetcontainer !
- Get the packettype of a packet
- Adding metrics
Tested with Paper-1.16.5, Skript-2.5.3, ProtocolLib-4.6.0, Java11, skript-reflect-2.1.0
First release
Don't forgot to use a ProtocolLib dev build and not 4.5.1.
ADDED
- Packet event
- Get all available packettypes
- Create a new packettype
- Get and set a packet field (Auto conversion of number to int/float/long/double/short/byte)
- Get all fields of a packet
- Send a packet to players
- Get all fields's classes of a packet
- Create an ArrayList from objects
- Get the id of an entity
- Get the NMS of an entity/itemstack/world
- Create a NMS BlockPosition from a location or a vector
- Get the NMS Pair of an object with an other
- Convert a number to int/float/long/double/short/byte, can also convert to an Array
Known issue
- The packet event manager is not clear when you unregister a packet event
- If you use "on packet event play_client_use_entity:", player can't fully damage entities anymore
Tested with Paper-1.16.4, Skript-2.5.3, ProtocolLib-build-480, Java11, skript-reflect-2.1.0