Class LoginEvent
- java.lang.Object
-
- com.velocitypowered.api.event.connection.LoginEvent
-
- All Implemented Interfaces:
ResultedEvent<ResultedEvent.ComponentResult>
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 on the proxy.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.velocitypowered.api.event.ResultedEvent
ResultedEvent.ComponentResult, ResultedEvent.GenericResult, ResultedEvent.Result
-
-
Constructor Summary
Constructors Constructor Description LoginEvent(Player player)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Player
getPlayer()
ResultedEvent.ComponentResult
getResult()
Returns the result associated with this event.void
setResult(ResultedEvent.ComponentResult result)
Sets the result of this event.String
toString()
-
-
-
Constructor Detail
-
LoginEvent
public LoginEvent(Player player)
-
-
Method Detail
-
getPlayer
public Player getPlayer()
-
getResult
public ResultedEvent.ComponentResult 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
public void setResult(ResultedEvent.ComponentResult result)
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
-
-