Package net.md_5.bungee.api.event
Class LoginEvent
- All Implemented Interfaces:
Cancellable
Event called to represent a player logging in.
-
Constructor Summary
ConstructorDescriptionLoginEvent
(PendingConnection connection, Callback<LoginEvent> done) LoginEvent
(PendingConnection connection, Callback<LoginEvent> done, LoginResult loginResult) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Deprecated.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 texturesint
hashCode()
boolean
Cancelled state.void
setCancelled
(boolean cancelled) Cancelled state.void
setCancelReason
(String cancelReason) Deprecated.void
setCancelReason
(BaseComponent... cancelReason) void
setLoginResult
(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:
isCancelled
in 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:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- the state to set
-
setLoginResult
The player's login result containing his textures -
toString
- Overrides:
toString
in classAsyncEvent<LoginEvent>
-
equals
- Overrides:
equals
in classAsyncEvent<LoginEvent>
-
canEqual
- Overrides:
canEqual
in classAsyncEvent<LoginEvent>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAsyncEvent<LoginEvent>
-