Class LoginEventImpl
- java.lang.Object
-
- com.velocitypowered.api.event.player.LoginEventImpl
-
- All Implemented Interfaces:
Event,LoginEvent,ResultedEvent<ResultedEvent.ComponentResult>
public final class LoginEventImpl extends Object implements LoginEvent
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 LoginEventImpl(Player player)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Playerplayer()ResultedEvent.ComponentResultresult()Returns the result associated with this event.voidsetResult(ResultedEvent.ComponentResult result)Sets the result of this event.StringtoString()
-
-
-
Constructor Detail
-
LoginEventImpl
public LoginEventImpl(Player player)
-
-
Method Detail
-
player
public Player player()
- Specified by:
playerin interfaceLoginEvent
-
result
public ResultedEvent.ComponentResult result()
Description copied from interface:ResultedEventReturns the result associated with this event.- Specified by:
resultin interfaceResultedEvent<ResultedEvent.ComponentResult>- Returns:
- the result of this event
-
setResult
public void setResult(ResultedEvent.ComponentResult result)
Description copied from interface:ResultedEventSets the result of this event. The result must be non-null.- Specified by:
setResultin interfaceResultedEvent<ResultedEvent.ComponentResult>- Parameters:
result- the new result
-
-