Package net.md_5.bungee.api.event
Class LoginEvent
- java.lang.Object
- 
- net.md_5.bungee.api.plugin.Event
- 
- net.md_5.bungee.api.event.AsyncEvent<LoginEvent>
- 
- net.md_5.bungee.api.event.LoginEvent
 
 
 
- 
- All Implemented Interfaces:
- Cancellable
 
 public class LoginEvent extends AsyncEvent<LoginEvent> implements Cancellable Event called to represent a player logging in.
- 
- 
Constructor SummaryConstructors Constructor Description LoginEvent(PendingConnection connection, Callback<LoginEvent> done)LoginEvent(PendingConnection connection, Callback<LoginEvent> done, LoginResult loginResult)
 - 
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 insteadBaseComponent[]getCancelReasonComponents()Deprecated.use single component methods insteadPendingConnectiongetConnection()Connection attempting to login.LoginResultgetLoginResult()The player's login result containing his texturesBaseComponentgetReason()Message to use when kicking if this event is canceled.inthashCode()booleanisCancelled()Cancelled state.voidsetCancelled(boolean cancelled)Cancelled state.voidsetCancelReason(String cancelReason)Deprecated.use component methods insteadvoidsetCancelReason(BaseComponent... cancelReason)Deprecated.use single component methods insteadvoidsetLoginResult(LoginResult loginResult)The player's login result containing his texturesvoidsetReason(BaseComponent reason)Message to use when kicking if this event is canceled.StringtoString()- 
Methods inherited from class net.md_5.bungee.api.event.AsyncEventcompleteIntent, postCall, registerIntent
 
- 
 
- 
- 
- 
Constructor Detail- 
LoginEventpublic LoginEvent(PendingConnection connection, Callback<LoginEvent> done) 
 - 
LoginEventpublic LoginEvent(PendingConnection connection, Callback<LoginEvent> done, LoginResult loginResult) 
 
- 
 - 
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
 
 - 
isCancelledpublic boolean isCancelled() Cancelled state.- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- the cancelled state of this event
 
 - 
getReasonpublic BaseComponent getReason() Message to use when kicking if this event is canceled.
 - 
getLoginResultpublic LoginResult getLoginResult() The player's login result containing his textures
 - 
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
 
 - 
setReasonpublic void setReason(BaseComponent reason) Message to use when kicking if this event is canceled.
 - 
setLoginResultpublic void setLoginResult(LoginResult loginResult) The player's login result containing his textures
 - 
toStringpublic String toString() - Overrides:
- toStringin class- AsyncEvent<LoginEvent>
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- AsyncEvent<LoginEvent>
 
 - 
canEqualprotected boolean canEqual(Object other) - Overrides:
- canEqualin class- AsyncEvent<LoginEvent>
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AsyncEvent<LoginEvent>
 
 
- 
 
-