Class LoginEvent
java.lang.Object
com.velocitypowered.api.event.connection.LoginEvent
- All Implemented Interfaces:
ResultedEvent<ResultedEvent.ComponentResult>
@AwaitingEvent
public final class LoginEvent
extends Object
implements ResultedEvent<ResultedEvent.ComponentResult>
This event is fired once the player has been authenticated, but before they connect to a server.
Velocity will wait for this event to finish firing before proceeding with the rest of the login
process, but you should try to limit the work done in any event that fires during the login
process.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.velocitypowered.api.event.ResultedEvent
ResultedEvent.ComponentResult, ResultedEvent.GenericResult, ResultedEvent.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the result associated with this event.void
Sets the result of this event.toString()
-
Constructor Details
-
LoginEvent
-
-
Method Details
-
getPlayer
-
getResult
Description copied from interface:ResultedEvent
Returns the result associated with this event.- Specified by:
getResult
in interfaceResultedEvent<ResultedEvent.ComponentResult>
- Returns:
- the result of this event
-
setResult
Description copied from interface:ResultedEvent
Sets the result of this event. The result must be non-null.- Specified by:
setResult
in interfaceResultedEvent<ResultedEvent.ComponentResult>
- Parameters:
result
- the new result
-
toString
-