Class PreLoginEvent
java.lang.Object
me.internalizable.numdrassl.api.event.connection.PreLoginEvent
- All Implemented Interfaces:
ResultedEvent<PreLoginEvent.PreLoginResult>
Event fired when a player attempts to connect to the proxy.
This is fired before authentication, so the player's UUID and name may not be known yet.
Cancelling this event or setting the result to denied will disconnect the player.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResult for a pre-login event.Nested classes/interfaces inherited from interface ResultedEvent
ResultedEvent.GenericResult, ResultedEvent.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the address the player is connecting from.Get the current result.voidSet the result.
-
Constructor Details
-
PreLoginEvent
-
-
Method Details
-
getAddress
Get the address the player is connecting from.- Returns:
- the player's address
-
getResult
Description copied from interface:ResultedEventGet the current result.- Specified by:
getResultin interfaceResultedEvent<PreLoginEvent.PreLoginResult>- Returns:
- the result
-
setResult
Description copied from interface:ResultedEventSet the result.- Specified by:
setResultin interfaceResultedEvent<PreLoginEvent.PreLoginResult>- Parameters:
result- the new result
-