Package net.md_5.bungee.api.event
Class PreLoginEvent
- All Implemented Interfaces:
Cancellable
Event called to represent a player first making their presence and username
known.
This will NOT contain many attributes relating to the player which are filled
in after authentication with Mojang's servers. Examples of attributes which
are not available include their UUID.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanDeprecated.use component methods insteadDeprecated.use single component methods insteadConnection attempting to login.Message 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(BaseComponent... cancelReason) Deprecated.use single component methods insteadvoidsetReason(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
-
PreLoginEvent
-
-
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
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
Message to use when kicking if this event is canceled. -
toString
- Overrides:
toStringin classAsyncEvent<PreLoginEvent>
-
equals
- Overrides:
equalsin classAsyncEvent<PreLoginEvent>
-
canEqual
- Overrides:
canEqualin classAsyncEvent<PreLoginEvent>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAsyncEvent<PreLoginEvent>
-