public static enum ConnectionRequestEvent.Result extends Enum<ConnectionRequestEvent.Result>
| Enum Constant and Description |
|---|
BANNED
Connecting user will be sent banned packet.
|
CONTINUE
Connecting user will continue to login.
|
INVALID_PROTOCOL_VERSION
Invalid RakNet protocol version
|
SERVER_FULL
Connecting user will be sent no free connections packet.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectionRequestEvent.Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionRequestEvent.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionRequestEvent.Result CONTINUE
public static final ConnectionRequestEvent.Result INVALID_PROTOCOL_VERSION
public static final ConnectionRequestEvent.Result BANNED
public static final ConnectionRequestEvent.Result SERVER_FULL
public static ConnectionRequestEvent.Result[] values()
for (ConnectionRequestEvent.Result c : ConnectionRequestEvent.Result.values()) System.out.println(c);
public static ConnectionRequestEvent.Result 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 © 2017–2018 NukkitX. All rights reserved.