Package net.md_5.bungee.api.event
Enum ServerConnectEvent.Reason
- All Implemented Interfaces:
Serializable
,Comparable<ServerConnectEvent.Reason>
- Enclosing class:
- ServerConnectEvent
-
Enum Constant Summary
Enum ConstantDescriptionExecution of a commandInitial proxy connect.Redirecting to another server when kicked from original server.Redirection to lobby server due to being unable to connect to original serverPlugin initiated connect.Plugin message request.Redirecting to another server when client loses connection to server due to an exception.Unknown cause. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerConnectEvent.Reason
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 Details
-
LOBBY_FALLBACK
Redirection to lobby server due to being unable to connect to original server -
COMMAND
Execution of a command -
SERVER_DOWN_REDIRECT
Redirecting to another server when client loses connection to server due to an exception. -
KICK_REDIRECT
Redirecting to another server when kicked from original server. -
PLUGIN_MESSAGE
Plugin message request. -
JOIN_PROXY
Initial proxy connect. -
PLUGIN
Plugin initiated connect. -
UNKNOWN
Unknown cause.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-