Package net.md_5.bungee.api.event
Class LoginEvent
- All Implemented Interfaces:
Cancellable
Event called to represent a player logging in.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Deprecated.use component methods insteadDeprecated.use single component methods insteadConnection attempting to login.Message to use when kicking if this event is canceled.int
hashCode()
boolean
Cancelled state.void
setCancelled
(boolean cancelled) Cancelled state.void
setCancelReason
(String cancelReason) Deprecated.use component methods insteadvoid
setCancelReason
(BaseComponent... cancelReason) Deprecated.use single component methods insteadvoid
setReason
(BaseComponent reason) Message to use when kicking if this event is canceled.toString()
Methods inherited from class net.md_5.bungee.api.event.AsyncEvent
completeIntent, postCall, registerIntent
-
Constructor Details
-
LoginEvent
-
-
Method Details
-
getCancelReason
Deprecated.use component methods instead- Returns:
- reason to be displayed
-
setCancelReason
Deprecated.use component methods instead- Parameters:
cancelReason
- reason to be displayed
-
getCancelReasonComponents
Deprecated.use single component methods instead- Returns:
- reason to be displayed
-
setCancelReason
Deprecated.use single component methods instead- Parameters:
cancelReason
- reason to be displayed
-
isCancelled
public boolean isCancelled()Cancelled state.- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- the cancelled state of this event
-
getReason
Message to use when kicking if this event is canceled. -
getConnection
Connection attempting to login. -
setCancelled
public void setCancelled(boolean cancelled) Cancelled state.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- the state to set
-
setReason
Message to use when kicking if this event is canceled. -
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>
-