public enum Command extends Enum<Command>
Modifier and Type | Class and Description |
---|---|
class |
Command.CommandInput |
Enum Constant and Description |
---|
ADVANCED_BAN |
BAN |
BAN_LIST |
CHANGE_REASON |
CHECK |
HISTORY |
IP_BAN |
KICK |
MUTE |
SYSTEM_PREFERENCES |
TEMP_BAN |
TEMP_MUTE |
TEMP_WARN |
UN_BAN |
UN_MUTE |
UN_PUNISH |
UN_WARN |
WARN |
WARNS |
Modifier and Type | Method and Description |
---|---|
void |
execute(Object player,
String[] args) |
static Command |
getByName(String name) |
String |
getPermission() |
String |
getUsagePath() |
boolean |
validateArguments(String[] args) |
static Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Command BAN
public static final Command TEMP_BAN
public static final Command IP_BAN
public static final Command MUTE
public static final Command TEMP_MUTE
public static final Command WARN
public static final Command TEMP_WARN
public static final Command KICK
public static final Command UN_BAN
public static final Command UN_MUTE
public static final Command UN_WARN
public static final Command UN_PUNISH
public static final Command CHANGE_REASON
public static final Command BAN_LIST
public static final Command HISTORY
public static final Command WARNS
public static final Command CHECK
public static final Command SYSTEM_PREFERENCES
public static final Command ADVANCED_BAN
public static Command[] values()
for (Command c : Command.values()) System.out.println(c);
public static Command 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 nullpublic String getPermission()
public String getUsagePath()
public boolean validateArguments(String[] args)
Copyright © 2020. All rights reserved.