Package net.md_5.bungee.api.event
Class LoginEvent
- All Implemented Interfaces:
Cancellable
Event called to represent a player logging in.
-
Constructor Summary
ConstructorsConstructorDescriptionLoginEvent(PendingConnection connection, Callback<LoginEvent> done) LoginEvent(PendingConnection connection, Callback<LoginEvent> done, LoginResult loginResult) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanDeprecated.Use component methods instead.Message to use when kicking if this event is canceled.Connection attempting to login.The player's login result containing his texturesinthashCode()booleanCancelled state.voidsetCancelled(boolean cancelled) Cancelled state.voidsetCancelReason(String cancelReason) Deprecated.voidsetCancelReason(BaseComponent... cancelReason) voidsetLoginResult(LoginResult loginResult) The player's login result containing his texturestoString()Methods inherited from class net.md_5.bungee.api.event.AsyncEvent
completeIntent, postCall, registerIntent
-
Constructor Details
-
LoginEvent
-
LoginEvent
-
-
Method Details
-
getCancelReason
Deprecated.Use component methods instead.- Returns:
- reason to be displayed
-
setCancelReason
Deprecated.- Parameters:
cancelReason- reason to be displayed
-
setCancelReason
-
isCancelled
public boolean isCancelled()Cancelled state.- Specified by:
isCancelledin interfaceCancellable- Returns:
- the cancelled state of this event
-
getCancelReasonComponents
Message to use when kicking if this event is canceled. -
getLoginResult
The player's login result containing his textures -
getConnection
Connection attempting to login. -
setCancelled
public void setCancelled(boolean cancelled) Cancelled state.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancelled- the state to set
-
setLoginResult
The player's login result containing his textures -
toString
- Overrides:
toStringin classAsyncEvent<LoginEvent>
-
equals
- Overrides:
equalsin classAsyncEvent<LoginEvent>
-
canEqual
- Overrides:
canEqualin classAsyncEvent<LoginEvent>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAsyncEvent<LoginEvent>
-