Skip to content

1.8-pre-16

Pre-release
Pre-release
Compare
Choose a tag to compare
@retrooper retrooper released this 10 Jun 19:48

CHANGELOG

Please remember this is only a summary of the changes, I won't list every single change to keep this readable.

IMPORTANT NOTES

I know I may have not added all wrappers/features that might have been suggested. They will be ready when they are ready. We focus on quality and not quantity when it comes to wrappers. Giving deadlines usually results in rushed and bad products. The same applies when it comes to PacketEvents' 1.8 stable release, it will be ready when its ready. Speed up the process by updating to the pre-releases and reporting bugs! 🙂

If you are shading PacketEvents, you need to soft-depend ProtocolLib, ViaVersion, ProtocolSupport and Geyser-Spigot in your plugin.
Example plugin.yml

name: myplugin
version: 1.0.0
main: me.opdeveloper.myplugin.MainClass
author: myname
softdepend:
  - ProtocolLib
  - ProtocolSupport
  - ViaVersion
  - Geyser-Spigot

DEPRECATIONS

  • PacketEventPriority deprecated, please use PacketListenerPriority now.

  • PlayerUtils#getNMSPing(Player) deprecated.

  • PlayerUtils#getSmoothedPing(Player) deprecated;

  • PlayerUtils#getSmoothedPing(UUID) deprecated;

  • PlayerUtils#getPing(UUID) deprecated;
    Use PlayerUtils#getPing(Player) for ping.

  • WrappedPacketOutEntityVelocity#getVelocity and setVelocity created, the other velocity accessors deprecated. (getVelocityX, ...)

  • WrappedPacketOutExplosion#getPosition and setPosition created, the other position accessors are deprecated. (getX, getY, ...)

  • WrappedPacketInFlying#getPosition and setPosition created, the other position accessors are deprecated. (getX, getY, ...)

  • WrappedPacketInFlying#hasPositionChanged created, isPosition deprecated.

  • WrappedPacketInFlying#hasRotationChanged created, isLook deprecated.

  • WrappedPacketOutExplosion#getPlayerVelocity and setPlayerVelocity created, the getPlayerMotionX/Y/Z methods are deprecated.

  • WrappedPacketInVehicleMove#getPosition and setPosition created, the other position accessors are deprecated. (getX, getY, ...)

BUG FIXES

  • Early injector now supports late-bind and won't revert to the compatibility injector.
  • Paper injector added for support for newer versions of paper. (Thank you ViaVersion)
  • WrappedPacketOutBlockBreakAnimation#getBlockPosition always {0, 0, 0} fixed.
  • WrappedPacketOutGameStateChange bug fix.
  • Geyser incompatibilities fixed by @Camotoy .

NEW FEATURES

  • ServerVersion#v_1_17 created.

  • ClientVersion#v_1_17 created.

  • PlayerUtils#isGeyserPlayer(Player) created.

  • PlayerUtils#isGeyserPlayer(UUID) created.

  • PlayerUtils#changeSkinProperty created.

  • ServerUtils#isGeyserAvailable created.

You are now able to schedule a task right after the server sends a specific packet.

  • PacketPlaySendEvent#setPostTask created;

  • PacketLoginSendEvent#setPostTask created;

  • PacketStatusSendEvent#setPostTask created;

  • WrappedPacketOutMapChunk created, but incomplete.

  • WrappedPacketOutSpawnEntity created, but incomplete.

  • WrappedPacketOutSetCooldown created.

  • WrappedPacketOutTitle created.

  • WrappedPacketOutSpawnEntityLiving created.

  • WrappedPacketOutWindowItems created.

  • WrappedPacketOutBlockAction created by @Tecnio .

  • WrappedPacketInBEdit created by @Tecnio .

  • WrappedPacketInJigsawGenerate created by @Tecnio .

  • WrappedPacketLoginOutDisconnect completed by @Tecnio .

  • WrappedPacketLoginOutSuccess completed by @Tecnio .

CHANGES

  • Proper license notice in source-files now.

EXAMPLE USAGE

Example for packetevents 1.8-pre-16