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
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
LoginDisconnectEventthat 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
PreLoginevents but they don't let you cover disconnects due to things likevelocity.secretverification, or player connecting without velocity.Other
No response