Skip to content

Add event for Pre-Join Dialog login/register prompts #3100

Description

@zkhssb

What feature do you want to see added?

Add a Bukkit event that is fired when AuthMe shows the Pre-Join Dialog (login/register) to a player during the AsyncPlayerConnectionConfigureEvent phase.
This would allow third-party plugins to integrate with AuthMe's Pre-Join Dialog system in a cleaner way, without relying on reflection to access internal services like PreJoinDialogService.
Proposed event:

public class AuthMePreJoinDialogEvent extends Event {
    private final String playerName;
    private final UUID playerId;
    private final boolean isRegistered; // true = login, false = register
    // getters/setters
}

Use case:

Our plugin EasyBot provides QQ group login functionality. We use /authme forcelogin to authenticate players after external verification. An event would formalize this integration point.
Reference implementation:

Are there any alternatives?

Current approach uses reflection to access PreJoinDialogService and /authme forcelogin command for authentication. An event would be a cleaner API.

Anything else?

Similar to how AuthMeAsyncPreLoginEvent allows plugins to intercept /login commands, a AuthMePreJoinDialogEvent would allow plugins to intercept pre-join dialog prompts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions