public static enum ServerConnectEvent.Reason extends Enum<ServerConnectEvent.Reason>
Enum Constant and Description |
---|
COMMAND
Execution of a command
|
JOIN_PROXY
Initial proxy connect.
|
KICK_REDIRECT
Redirecting to another server when kicked from original server.
|
LOBBY_FALLBACK
Redirection to lobby server due to being unable to connect to
original server
|
PLUGIN
Plugin initiated connect.
|
PLUGIN_MESSAGE
Plugin message request.
|
SERVER_DOWN_REDIRECT
Redirecting to another server when client loses connection to server
due to an exception.
|
UNKNOWN
Unknown cause.
|
Modifier and Type | Method and Description |
---|---|
static ServerConnectEvent.Reason |
valueOf(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.
|
public static final ServerConnectEvent.Reason LOBBY_FALLBACK
public static final ServerConnectEvent.Reason COMMAND
public static final ServerConnectEvent.Reason SERVER_DOWN_REDIRECT
public static final ServerConnectEvent.Reason KICK_REDIRECT
public static final ServerConnectEvent.Reason PLUGIN_MESSAGE
public static final ServerConnectEvent.Reason JOIN_PROXY
public static final ServerConnectEvent.Reason PLUGIN
public static final ServerConnectEvent.Reason UNKNOWN
public static ServerConnectEvent.Reason[] values()
for (ServerConnectEvent.Reason c : ServerConnectEvent.Reason.values()) System.out.println(c);
public static ServerConnectEvent.Reason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2020 SpigotMC. All rights reserved.