Class LoginEvent
java.lang.Object
me.internalizable.numdrassl.api.event.connection.LoginEvent
- All Implemented Interfaces:
ResultedEvent<LoginEvent.LoginResult>
Event fired during the login process after the player's identity is known
but before they are fully connected.
Setting the result to denied will disconnect the player.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classResult for a login event.Nested classes/interfaces inherited from interface ResultedEvent
ResultedEvent.GenericResult, ResultedEvent.Result -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the player attempting to log in.Get the current result.voidsetResult(LoginEvent.LoginResult result) Set the result.
-
Constructor Details
-
LoginEvent
-
-
Method Details
-
getPlayer
-
getResult
Description copied from interface:ResultedEventGet the current result.- Specified by:
getResultin interfaceResultedEvent<LoginEvent.LoginResult>- Returns:
- the result
-
setResult
Description copied from interface:ResultedEventSet the result.- Specified by:
setResultin interfaceResultedEvent<LoginEvent.LoginResult>- Parameters:
result- the new result
-