Skip to content

Event Addition: LoginDisconnectEvent #10368

@AV3RG

Description

@AV3RG

Is your feature request related to a problem?

There is currently only one event that handles when player quits from the server, the PlayerQuitEvent. Unfortunately that event only works for players that were able to successfully connect to the server. Currently there is no event that is letting users handle disconnects from the server during the login phase.

Describe the solution you'd like.

We can add an event like LoginDisconnectEvent that lets plugin access the connection details, the disconnect reason and such. This can be a non-cancellable event as plugins should not be able to let them connect anyway.

Describe alternatives you've considered.

We can do it via the PreLogin events but they don't let you cover disconnects due to things like velocity.secret verification, or player connecting without velocity.

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureRequest for a new Feature.
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions