Repository navigation
Fix Paper dialog timeouts and email argument parsing - #3204
Open
Minecraft0122 wants to merge 1 commit into
Open
Minecraft0122 wants to merge 1 commit into
Minecraft0122 wants to merge 1 commit into
Conversation
Close Paper authentication dialogs by disconnecting during configuration when login or registration fails. Register /email add arguments with a native greedy string so addresses containing @ are accepted by the client parser.
Minecraft0122
marked this pull request as ready for review
November 22, 2026 13:45
Author
There was a problem hiding this comment.
🟡 Changes recommended
Cancellation kicks can preempt valid proxy auto-login, while regression tests do not verify the native greedy argument type or close-before-disconnect ordering for both login and registration timeouts.
3 open issues
What changed in this PR
This PR updates AuthMe’s Paper integration to disconnect players during configuration when authentication dialogs fail or time out, and fixes client-side parsing of email addresses.
Changes:
- Close login and registration dialogs before disconnecting, rather than deferring kicks until join.
- Register
/email addwith a native greedy-string argument while preserving existing command handling. - Add email parsing coverage and update the login-timeout assertion.
| File | Description |
|---|---|
authme-paper-common/src/test/java/fr/xephi/authme/platform/PaperBrigadierCommandRegistrarTest.java |
Adds an email command fixture and parsing test. |
authme-paper-common/src/test/java/fr/xephi/authme/listener/PaperDialogFlowListenerTest.java |
Checks configuration-phase disconnection on login timeout. |
authme-paper-common/src/main/java/fr/xephi/authme/platform/PaperBrigadierCommandRegistrar.java |
Uses a native greedy-string argument for email addition. |
authme-paper-common/src/main/java/fr/xephi/authme/listener/PaperDialogFlowListener.java |
Closes dialogs before disconnecting with the failure message. |
Review effort: Balanced
Comment on lines
269
to
+270
| if (kickMessage != null) { | ||
| preJoinDialogService.storePendingKickMessage(sessionId, kickMessage); | ||
| connection.disconnect(LegacyComponentSerializer.legacySection().deserialize(kickMessage)); |
Comment on lines
+727
to
729
| verify(connection).disconnect(any(net.kyori.adventure.text.Component.class)); | ||
| verify(preJoinDialogService, never()).storePendingKickMessage(anyLong(), anyString()); | ||
| } |
| @Test | ||
| public void shouldAcceptAtSignInEmailAddArguments() throws Exception { | ||
| String input = "email add test@example.org test@example.org"; | ||
| assertThat(dispatcher.parse(input, sourceStack).getExceptions().isEmpty(), equalTo(true)); |
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.

Fixes #3146 by disconnecting players during the Paper configuration phase when the login or registration dialog fails or times out. The dialog closes before disconnect, preventing clients from remaining on a waiting screen.
Also registers /email add with a native greedy string argument so Minecraft clients accept addresses containing @ without displaying a command syntax error. Existing command handling and validation remain unchanged.
Closes #3157
Closes #3067