public enum LeaveCause extends Enum<LeaveCause>
Enum Constant and Description |
---|
BAN
The player has been banned from the server
|
KICK
The player has been kicked from the party
|
LEAVE
The player left the party
|
OTHERS
Other reasons
|
TIMEOUT
The player got kicked after leaving the server
|
Modifier and Type | Method and Description |
---|---|
static LeaveCause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LeaveCause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LeaveCause LEAVE
public static final LeaveCause KICK
public static final LeaveCause BAN
public static final LeaveCause TIMEOUT
public static final LeaveCause OTHERS
public static LeaveCause[] values()
for (LeaveCause c : LeaveCause.values()) System.out.println(c);
public static LeaveCause 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 © 2023. All rights reserved.