Package net.md_5.bungee.api.event
Enum ServerConnectEvent.Reason
- java.lang.Object
- 
- java.lang.Enum<ServerConnectEvent.Reason>
- 
- net.md_5.bungee.api.event.ServerConnectEvent.Reason
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable<ServerConnectEvent.Reason>
 - Enclosing class:
- ServerConnectEvent
 
 public static enum ServerConnectEvent.Reason extends Enum<ServerConnectEvent.Reason> 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description COMMANDExecution of a commandJOIN_PROXYInitial proxy connect.KICK_REDIRECTRedirecting to another server when kicked from original server.LOBBY_FALLBACKRedirection to lobby server due to being unable to connect to original serverPLUGINPlugin initiated connect.PLUGIN_MESSAGEPlugin message request.SERVER_DOWN_REDIRECTRedirecting to another server when client loses connection to server due to an exception.UNKNOWNUnknown cause.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerConnectEvent.ReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static ServerConnectEvent.Reason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
LOBBY_FALLBACKpublic static final ServerConnectEvent.Reason LOBBY_FALLBACK Redirection to lobby server due to being unable to connect to original server
 - 
COMMANDpublic static final ServerConnectEvent.Reason COMMAND Execution of a command
 - 
SERVER_DOWN_REDIRECTpublic static final ServerConnectEvent.Reason SERVER_DOWN_REDIRECT Redirecting to another server when client loses connection to server due to an exception.
 - 
KICK_REDIRECTpublic static final ServerConnectEvent.Reason KICK_REDIRECT Redirecting to another server when kicked from original server.
 - 
PLUGIN_MESSAGEpublic static final ServerConnectEvent.Reason PLUGIN_MESSAGE Plugin message request.
 - 
JOIN_PROXYpublic static final ServerConnectEvent.Reason JOIN_PROXY Initial proxy connect.
 - 
PLUGINpublic static final ServerConnectEvent.Reason PLUGIN Plugin initiated connect.
 - 
UNKNOWNpublic static final ServerConnectEvent.Reason UNKNOWN Unknown cause.
 
- 
 - 
Method Detail- 
valuespublic static ServerConnectEvent.Reason[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ServerConnectEvent.Reason c : ServerConnectEvent.Reason.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static ServerConnectEvent.Reason valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
 
- 
 
-