Skip to content

fix(bungee): start the proxy bridge without PacketEvents installed - #3149

Merged
Xephi merged 1 commit into
AuthMe:masterfrom
HotWaterFlask:fix/bungee-load-without-packetevents
Sep 22, 2026
Merged

Xephi merged 1 commit into
AuthMe:masterfrom
HotWaterFlask:fix/bungee-load-without-packetevents

Conversation

@HotWaterFlask

Copy link
Copy Markdown
Contributor

AuthMeBungee failed to load on proxies without PacketEvents: the bridge constructor instantiated the PacketEvents-backed premium verification manager, so the JVM resolved PacketEvents classes while linking that class and threw NoClassDefFoundError. The availability check inside the manager therefore never ran.

The manager is now created through a factory that only loads the PacketEvents-backed implementation when the packetevents plugin is present and falls back to a no-op implementation otherwise, mirroring the lazy pattern already used by the Spigot platform adapter. A failed onEnable no longer causes a NullPointerException in onDisable either.
Closes #3148

AuthMeBungee failed to load on proxies without PacketEvents: the bridge constructor instantiated the PacketEvents-backed premium verification manager, so the JVM resolved PacketEvents classes while linking that class and threw NoClassDefFoundError. The availability check inside the manager therefore never ran.

The manager is now created through a factory that only loads the PacketEvents-backed implementation when the packetevents plugin is present and falls back to a no-op implementation otherwise, mirroring the lazy pattern already used by the Spigot platform adapter. A failed onEnable no longer causes a NullPointerException in onDisable either.
@Xephi
Xephi merged commit d82ebdc into AuthMe:master Sep 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

AuthMeBungee requires the installation of PacketEvents in order to function properly.

2 participants