public enum PunishmentType extends Enum<PunishmentType>
Enum Constant and Description |
---|
BAN |
IP_BAN |
KICK |
MUTE |
TEMP_BAN |
TEMP_IP_BAN |
TEMP_MUTE |
TEMP_WARNING |
WARNING |
Modifier and Type | Method and Description |
---|---|
static PunishmentType |
fromCommandName(String cmd) |
PunishmentType |
getBasic() |
String |
getConfSection() |
String |
getConfSection(String path) |
String |
getName() |
String |
getPerms() |
boolean |
isIpOrientated() |
boolean |
isTemp() |
static PunishmentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PunishmentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PunishmentType BAN
public static final PunishmentType TEMP_BAN
public static final PunishmentType IP_BAN
public static final PunishmentType TEMP_IP_BAN
public static final PunishmentType MUTE
public static final PunishmentType TEMP_MUTE
public static final PunishmentType WARNING
public static final PunishmentType TEMP_WARNING
public static final PunishmentType KICK
public static PunishmentType[] values()
for (PunishmentType c : PunishmentType.values()) System.out.println(c);
public static PunishmentType 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 static PunishmentType fromCommandName(String cmd)
public String getName()
public String getPerms()
public String getConfSection()
public PunishmentType getBasic()
public boolean isTemp()
public boolean isIpOrientated()
Copyright © 2020. All rights reserved.