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
-
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.int
hashCode()
boolean
Cancelled state.void
setCancelled
(boolean cancelled) Cancelled state.void
setCancelReason
(String cancelReason) Deprecated.void
setCancelReason
(BaseComponent... cancelReason) 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.- 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. -
getConnection
Connection attempting to login. -
setCancelled
public void setCancelled(boolean cancelled) Cancelled state.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- the state to set
-
toString
- Overrides:
toString
in classAsyncEvent<PreLoginEvent>
-
equals
- Overrides:
equals
in classAsyncEvent<PreLoginEvent>
-
canEqual
- Overrides:
canEqual
in classAsyncEvent<PreLoginEvent>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAsyncEvent<PreLoginEvent>
-