public static enum AsyncPlayerPreLoginEvent.Result extends Enum<AsyncPlayerPreLoginEvent.Result>
Enum Constant and Description |
---|
ALLOWED
The player is allowed to log in
|
KICK_BANNED
The player is not allowed to log in, due to them being banned
|
KICK_FULL
The player is not allowed to log in, due to the server being full
|
KICK_OTHER
The player is not allowed to log in, for reasons undefined
|
KICK_WHITELIST
The player is not allowed to log in, due to them not being on the
white list
|
Modifier and Type | Method and Description |
---|---|
static AsyncPlayerPreLoginEvent.Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AsyncPlayerPreLoginEvent.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AsyncPlayerPreLoginEvent.Result ALLOWED
public static final AsyncPlayerPreLoginEvent.Result KICK_FULL
public static final AsyncPlayerPreLoginEvent.Result KICK_BANNED
public static final AsyncPlayerPreLoginEvent.Result KICK_WHITELIST
public static final AsyncPlayerPreLoginEvent.Result KICK_OTHER
public static AsyncPlayerPreLoginEvent.Result[] values()
for (AsyncPlayerPreLoginEvent.Result c : AsyncPlayerPreLoginEvent.Result.values()) System.out.println(c);
public static AsyncPlayerPreLoginEvent.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 © 2016. All rights reserved.