Repository navigation
feat(hooks): optional auto login and registration for Floodgate (Bedrock) players - #3173
Open
eduardomazolini wants to merge 1 commit into
Open
eduardomazolini wants to merge 1 commit into
eduardomazolini wants to merge 1 commit into
Conversation
…ock) players Bedrock players connecting through Geyser/Floodgate have already been verified by their Xbox account, but AuthMe still asks them for a password. Typing it on a phone keyboard is a common source of timeouts and wrong passwords, especially for young players. Add two options, both disabled by default: - Hooks.floodgate.autoLogin: log in registered Bedrock players on join and skip the Paper pre-join dialog. - Hooks.floodgate.autoRegister: register Bedrock players that have no account yet with a random password and log them in. Floodgate is detected at runtime by reflection (like ViaVersion), so it stays an optional dependency. Java players are never affected: only UUIDs that Floodgate reports as Bedrock players qualify. Refs AuthMe#3112
eduardomazolini
force-pushed
the
feat/floodgate-auto-login
branch
from
October 18, 2026 20:06
423384c to
77a603b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3112
Why
Bedrock players joining through Geyser/Floodgate have already been verified by their Xbox account, but AuthMe still
asks them for a password. On a phone keyboard this is a frequent source of trouble: the pre-join dialog times out
while they type the password twice, and auto-capitalization/autocorrect produce "wrong password" kicks. Many Bedrock
players are young kids (as noted in #3112), and we hit exactly this on our school server.
What
Two new options, both disabled by default:
FloodgateServiceasks Floodgate (FloodgateApi#isFloodgatePlayer(UUID)) whether the connecting UUID is a Bedrockplayer. Floodgate is accessed by reflection, the same way
PaperDialogFlowListeneralready talks to ViaVersion, soit stays an optional runtime dependency and no new repository/dependency is added to the build.
PaperDialogFlowListener: skips the pre-join dialog for those players (like the verified premium path).AsynchronousJoin: force-logs registered Bedrock players in (next to the premium bypass), or registers them throughthe existing
API_REGISTRATIONflow with a random password that satisfies the configured length limits.Java client using a name like
.Stevestill has to log in.docs/config.mdregenerated (only the new section kept).Tests
AsynchronousJoinTest(auto login without limbo, auto register with a 24-char random password)and
PaperDialogFlowListenerTest(dialog skipped for registered and unregistered Bedrock players).mvn test -am -pl authme-paper-common,authme-paper: 1584 tests, 0 failures.options enabled:
The Bedrock player .X has been automatically logged in);... automatically registered);