Package net.md_5.bungee.api.event
Class LoginEvent
- All Implemented Interfaces:
Cancellable
Event called to represent a player logging in.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanDeprecated.use component methods insteadnet.md_5.bungee.api.chat.BaseComponent[]Deprecated.use single component methods insteadConnection attempting to login.net.md_5.bungee.api.chat.BaseComponentMessage to use when kicking if this event is canceled.inthashCode()booleanCancelled state.voidsetCancelled(boolean cancelled) Cancelled state.voidsetCancelReason(String cancelReason) Deprecated.use component methods insteadvoidsetCancelReason(net.md_5.bungee.api.chat.BaseComponent... cancelReason) Deprecated.use single component methods insteadvoidsetReason(net.md_5.bungee.api.chat.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:
isCancelledin interfaceCancellable- Returns:
- the cancelled state of this event
-
getReason
public net.md_5.bungee.api.chat.BaseComponent 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:
setCancelledin interfaceCancellable- Parameters:
cancelled- the state to set
-
setReason
public void setReason(net.md_5.bungee.api.chat.BaseComponent reason) Message to use when kicking if this event is canceled. -
toString
- Overrides:
toStringin classAsyncEvent<LoginEvent>
-
equals
- Overrides:
equalsin classAsyncEvent<LoginEvent>
-
canEqual
- Overrides:
canEqualin classAsyncEvent<LoginEvent>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAsyncEvent<LoginEvent>
-