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 SummaryConstructors Constructor Description PreLoginEvent(PendingConnection connection, Callback<PreLoginEvent> done)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetCancelReason()Deprecated.Use component methods instead.BaseComponent[]getCancelReasonComponents()Message to use when kicking if this event is canceled.PendingConnectiongetConnection()Connection attempting to login.inthashCode()booleanisCancelled()Cancelled state.voidsetCancelled(boolean cancelled)Cancelled state.voidsetCancelReason(String cancelReason)Deprecated.voidsetCancelReason(BaseComponent... cancelReason)StringtoString()- 
Methods inherited from class net.md_5.bungee.api.event.AsyncEventcompleteIntent, postCall, registerIntent
 
- 
 
- 
- 
- 
Constructor Detail- 
PreLoginEventpublic 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.- Parameters:
- cancelReason- reason to be displayed
 
 - 
setCancelReasonpublic void setCancelReason(BaseComponent... cancelReason) 
 - 
isCancelledpublic boolean isCancelled() Cancelled state.- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- the cancelled state of this event
 
 - 
getCancelReasonComponentspublic BaseComponent[] getCancelReasonComponents() Message to use when kicking if this event is canceled.
 - 
getConnectionpublic PendingConnection getConnection() Connection attempting to login.
 - 
setCancelledpublic void setCancelled(boolean cancelled) Cancelled state.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancelled- the state to set
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AsyncEvent<PreLoginEvent>
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- AsyncEvent<PreLoginEvent>
 
 - 
canEqualprotected boolean canEqual(Object other) - Overrides:
- canEqualin class- AsyncEvent<PreLoginEvent>
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AsyncEvent<PreLoginEvent>
 
 
- 
 
-