retrooper / 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.
GNU General Public License v3.0
513 stars 148 forks source link

Store ClientVersion inside the User #182

Closed retrooper closed 2 years ago

retrooper commented 2 years ago

Just so we don't need to manually access each time from our map that caches it. It contains useful data such as the player's UUID and username. This can help people not need to access the Bukkit Player object and make a cross-platform packet listener.

retrooper commented 2 years ago

I'll consider storing it inside our decoders.

retrooper commented 2 years ago

Fixed by https://github.com/retrooper/packetevents/commit/b1463a6d5bad87e771c8364255e81df735f53faf