Interface PreLoginEvent
-
- All Superinterfaces:
Event,ResultedEvent<ResultedEvent.ComponentResult>
- All Known Implementing Classes:
PreLoginEventImpl
public interface PreLoginEvent extends ResultedEvent<ResultedEvent.ComponentResult>
This event is fired when a player has initiated a connection with the proxy but before the proxy authenticates the player with Mojang or before the player's proxy connection is fully established (for offline mode).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.velocitypowered.api.event.ResultedEvent
ResultedEvent.ComponentResult, ResultedEvent.GenericResult, ResultedEvent.Result
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidallow()InboundConnectionconnection()booleanonlineMode()default voidreject(Component component)voidsetOnlineMode(boolean onlineMode)Stringusername()-
Methods inherited from interface com.velocitypowered.api.event.ResultedEvent
result, setResult
-
-
-
-
Method Detail
-
connection
InboundConnection connection()
-
username
String username()
-
onlineMode
boolean onlineMode()
-
setOnlineMode
void setOnlineMode(boolean onlineMode)
-
allow
default void allow()
-
reject
default void reject(Component component)
-
-