Package net.md_5.bungee.api.event
Class PreLoginEvent
- java.lang.Object
-
- net.md_5.bungee.api.plugin.Event
-
- net.md_5.bungee.api.event.AsyncEvent<PreLoginEvent>
-
- net.md_5.bungee.api.event.PreLoginEvent
-
- All Implemented Interfaces:
Cancellable
public class PreLoginEvent extends AsyncEvent<PreLoginEvent> implements 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 Constructor Description PreLoginEvent(PendingConnection connection, Callback<PreLoginEvent> done)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetCancelReason()Deprecated.use component methods insteadBaseComponent[]getCancelReasonComponents()Deprecated.use single component methods insteadvoidsetCancelReason(String cancelReason)Deprecated.Use component methods insteadvoidsetCancelReason(BaseComponent... cancelReason)Deprecated.use single component methods instead-
Methods inherited from class net.md_5.bungee.api.event.AsyncEvent
completeIntent, postCall, registerIntent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.md_5.bungee.api.plugin.Cancellable
isCancelled, setCancelled
-
-
-
-
Constructor Detail
-
PreLoginEvent
public PreLoginEvent(PendingConnection connection, Callback<PreLoginEvent> done)
-
-
Method Detail
-
getCancelReason
@Deprecated public String getCancelReason()
Deprecated.use component methods instead- Returns:
- reason to be displayed
-
setCancelReason
@Deprecated public void setCancelReason(String cancelReason)
Deprecated.Use component methods instead- Parameters:
cancelReason- reason to be displayed
-
getCancelReasonComponents
@Deprecated public BaseComponent[] getCancelReasonComponents()
Deprecated.use single component methods instead- Returns:
- reason to be displayed
-
setCancelReason
@Deprecated public void setCancelReason(BaseComponent... cancelReason)
Deprecated.use single component methods instead- Parameters:
cancelReason- reason to be displayed
-
-