Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
PacketEvents

PacketEvents

A powerful networking library for Minecraft packet processing and manipulation.

184.0k
155
Library

Compatibility

Minecraft: Java Edition

1.21.x
1.20.x
1.19.x
1.18.x
1.17.x
1.16.x
1.15.x
1.14.x
1.13.x
1.12.x
1.11.x
1.10.x
1.9.x
1.8.x
1.7.10

Platforms

Bukkit
BungeeCord
Fabric
Folia
Paper
Purpur
Spigot
Sponge
Velocity
Waterfall

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki Join Discord server
Donate on PayPalDonate on Patreon

Creators

retrooper
retrooper Owner

Details

Licensed GPL-3.0-only
Published last year
Updated last month
DescriptionGalleryChangelogVersions

Show all versions

1
2
3
4

PacketEvents 2.5.0 Bukkit

by retrooper on Sep 20, 2024
Download

PacketEvents 2.5.0 BungeeCord

by retrooper on Sep 20, 2024
Download

PacketEvents 2.5.0 Velocity

by retrooper on Sep 20, 2024
Download

New PacketEvents release here! 🎉

New update with performance improvements & bug fixes!

Brief Announcement 📢 (Some of these are still WIP⚠️)

We have our own website https://packetevents.com

Documentation: https://docs.packetevents.com

JavaDocs: https://javadocs.packetevents.com

If you want to support PacketEvents, and any upcoming events we plan for the future, consider sponsoring us on GitHub Sponsors

Contributors 🏅

This update wouldn't be possible without these contributors ❤️: @booky10, @AbhigyaKrishna, @KoutaChan, @ShadowOfHeaven , @Bram1903 , @libraryaddict, @AoElite, @rexlManu, @ManInMyVan, @KermanIsPretty, @Elikill58

What's Changed (Summary) 📚

  • 1.21.1 Minecraft support
  • Added 1.21 Fabric support (currently still only works on the client)
  • Support for new BungeeCord changes (dropped support for legacy BungeeCord versions)
  • PacketEvents commit-hash made visible in Minecraft Console
  • More efficient mappings reading, and event system
  • Added network synchronized registries (complete 1.21 support)
  • Added WrapperPlayServerBossBar wrapper
  • Various bug fixes

Full Changelog: https://github.com/retrooper/packetevents/compare/v2.4.0...v2.5.0

Maven/Gradle Dependency

Check out: https://docs.packetevents.com/getting-started

PacketEvents 2.4.0 BungeeCord

by retrooper on Jun 30, 2024
Download

PacketEvents 2.4.0 Velocity

by retrooper on Jun 30, 2024
Download

PacketEvents 2.4.0 Bukkit

by retrooper on Jun 30, 2024
Download

New PacketEvents release here!

1.21 Minecraft released a while ago, we are here to publish our first official release that supports it. This release contains various additions and bug fixes. As always, this section is merely a summary of the changes.

Please note that the declaration of the PacketEvents dependency has changed!

  • Depending on pre‐built PacketEvents
  • Shading PacketEvents

Changes

  • 1.21 Minecraft support
  • Gradle build chain reworked (with Kotlin DSL, also have Global Versioning)
  • Add support for Mojang mapped JARs
  • Add support for all versions of Adventure v4
  • Added immutable views on the values within our registries
  • Reworked PEVersion
  • PacketEvents switched to the Paper API to optimize Folia functionality (The Spigot platform is still supported)
  • ChatMessage_v1_19_1.ChatTypeBoundNetwork replaced with ChatType.Bound
  • NBT and Component methods added to the ItemStack builder
  • PacketEvents bStats setting is obsolete as it can be toggled within the configuration file created on the server
  • PacketWrapper#writeVarInt optimization
  • Event system optimization

Bug fixes

  • Fix chat type mappings (1.19+)
  • Fix Particle mappings for 1.12.2
  • Fix Encoding the EncryptionResponse wrapper
  • Fix SpigotConversionUtil#getEntityById for modern versions
  • Fix Spigot Particle Conversion
  • Fix Recipe Packet Read/Write
  • Fix SoundEffect for legacy Minecraft versions
  • Account for zero data in ChunkData packet (when unloading)
  • Fix NPC#despawnAll, NPC#changeSkin
  • Fix WrapperPlayServerJoinGame's reading of enforcesSecureChat
  • Fix WrapperPlayServerChunkDataBulk not being copied from one listener to another
  • Fix platform version detection on Velocity and BungeeCord
  • Fix BungeeCord injector

Known issues

This PacketEvents update was a rather large one. We acknowledge that it still has a few issues and plan on fixing them in the upcoming patch update.

1. MappedEntity#isRegistered call leads to NullPointerException

Network synched registries are currently being worked on. https://github.com/retrooper/packetevents/pull/866 Completion of this task should lead to the issue being resolved.

2. EntityMetadata issues on 1.20.5+

Some metadata types (eg. spawned wolves) cause issues due to them being implemented incorrectly. Also this, we plan on fixing in the next patch update.

Help PacketEvents / Donations

Maintaining PacketEvents is not a simple process. The project has grown a lot and some of you have been here to witness it all. PacketEvents now has two additional maintainers: booky10 and AbhigyaKrishna. If you are willing to extend your kindness to them also, please reach out.

PacketEvents 2.3.0 BungeeCord

by retrooper on May 8, 2024
Download

PacketEvents 2.3.0 Velocity

by retrooper on May 8, 2024
Download

PacketEvents 2.3.0 Bukkit

by retrooper on May 8, 2024
Download

Changelog

  • 1.20.5/1.20.6 support
  • Fixed incompatibility with ViaVersion
  • Slow but steady introduction of the Fabric module (not stable)
  • Compress mappings within PacketEvents to reduce file size
  • Optimizations to event handling
  • SpigotConversionUtil#getEntityById added (works on all versions now)
  • Implemented proper memory management on proxy
  • Implemented the setting to kick players after receiving an exception
  • Implemented Location#getDirection
  • Various functionality in SpigotConversionUtil fixed
  • JoinGame issues on 1.16/1.16.1 fixed
  • Redesign of FoliaScheduler utility within PacketEvents
  • Potions class implemented (The PotionTypes class is for entity effects, the Potions class for the potions available in the creative inventory)
  • Odd downsampling of colors fixed
  • Fix UUID serialization with Adventure
  • Fixes for WrapperPlayServerDeclareCommands

Learn how to use 2.3.0 by following our Wiki

Depending on pre-built PacketEvents

PacketEvents 2.2.1 BungeeCord

by retrooper on Feb 11, 2024
Download

PacketEvents 2.2.1 Velocity

by retrooper on Feb 11, 2024
Download

PacketEvents 2.2.1 Bukkit

by retrooper on Feb 11, 2024
Download

Changelog

  • Added testing of item tags
  • Fix NPCs not spawning on modern versions
  • Fix Level NBT missing on enchanted items exception
  • WrapperPlayServerScoreboardObjective & WrapperPlayServerUpdateScore fixed on 1.20.3/1.20.4
  • Fix Vector3i#subtract
  • Addition of VillagerLevel, Rotation, Color and DyeColor
  • Fix WrapperPlayServerResourcePackSend in 1.16
  • Fix packet re-encoding on Velocity
  • Fix certain server listing websites failing to ping PacketEvents servers
  • Properly read isFrontText in sign edit wrappers
  • Account for an entity eye field in ParticleVibrationData
  • Fix GSON component serialization on modern versions
  • Correct the maximum durability of ItemTypes.NETHERITE_HELMET
  • Fix MojangAPIUtil#requestPlayerTextureProperties(UUID)
  • Add new 1.20.4 entity poses
  • Addition of WrapperPlayServerActionBar
  • Fix player instances being null after a reload
  • Fix bStats metrics on velocity module
  • Increase AdventureNBTSerialization.DEPTH_LIMIT to 512

Learn how to use 2.2.1 by following our Wiki

Depending on pre-built PacketEvents

PacketEvents 2.2.0 BungeeCord

by retrooper on Dec 13, 2023
Download

PacketEvents 2.2.0 Velocity

by retrooper on Dec 13, 2023
Download

PacketEvents 2.2.0 Bukkit

by retrooper on Dec 13, 2023
Download

Changelog

  • Support for 1.20.3/1.20.4 Minecraft (thanks to @booky10 for contributions)
  • Initialization Optimization on Spigot
  • bStats implemented for Velocity
  • bStats implemented for BungeeCord
  • EntityMetadataProvider#entityData(ClientVersion) added and EntityMetadataProvider#entityData() deprecated!

Learn how to use 2.2.0 by following our Wiki

Depending on pre-built PacketEvents

PacketEvents 2.1.0 BungeeCord

by retrooper on Nov 27, 2023
Download

PacketEvents 2.1.0 Velocity

by retrooper on Nov 27, 2023
Download

PacketEvents 2.1.0 Bukkit

by retrooper on Nov 27, 2023
Download

Changelog

  • Support for 1.20.2
  • Minor bug fixes (Channel finding on modern versions, MerchantOffers wrapper, Some Adventure API exceptions)

API Additions

  • PacketConfigReceiveEvent, PacketConfigSendEvent
  • EntityMetadataProvider interface created, allowing external PacketEvents Addons to provide more advanced abstraction to our entity metadata system

Learn how to use 2.1.0 by following our Wiki

Depending on pre-built PacketEvents

PacketEvents 2.0.2 BungeeCord

by retrooper on Sep 13, 2023
Download

PacketEvents 2.0.2 Velocity

by retrooper on Sep 13, 2023
Download
1
2
3
4

Modrinth is open source.

main@396f737

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.