Skip to content

Register Floodgate bypass after plugin enable - #3

Merged
THEMPGUYActions merged 3 commits into
mainfrom
fix/defer-floodgate-registration-v1.4.12
Oct 20, 2026
Merged

THEMPGUYActions merged 3 commits into
mainfrom
fix/defer-floodgate-registration-v1.4.12

Conversation

@THEMPGUYActions

@THEMPGUYActions THEMPGUYActions commented Oct 20, 2026 •

Copy link
Copy Markdown

Root cause

BungeeGuard loads during Bukkit's STARTUP phase and was looking for Floodgate immediately in onEnable. If Floodgate/EduFloodgate loads later (commonly during POSTWORLD), getPlugin("floodgate") was unavailable and the integration returned silently. The handshake listener then applied the ordinary Java token requirement to Bedrock/Education sessions.

Fix

  • Detect Floodgate and EduFloodgate without assuming a single plugin-name casing.
  • Retry integration registration on PluginEnableEvent when Floodgate actually becomes enabled.
  • Log that BungeeGuard is waiting for Floodgate instead of silently doing nothing.
  • Keep the bypass tied to Floodgate's own handshake callback, require Floodgate's expected decrypted payload length, and reject raw client-supplied markers.
  • Bump version to 1.4.12.

Verification

  • GitHub Actions Maven build and verification passed.
  • JUnit: 10 tests, 0 failures, 0 errors, 0 skipped.
  • git diff --check passed.
  • A live Education Edition connection still needs confirmation on the RealmsNetwork server.

@THEMPGUYActions
THEMPGUYActions merged commit 6b3ce0e into main Oct 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant