public enum Role extends java.lang.Enum<Role> implements Permissable
| Enum Constant and Description |
|---|
COLEADER
|
LEADER
|
MODERATOR |
NORMAL |
RECRUIT |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
nicename |
TL |
translation |
int |
value |
| Modifier and Type | Method and Description |
|---|---|
org.bukkit.inventory.ItemStack |
buildItem() |
static Role |
fromString(java.lang.String check) |
static Role |
getByValue(int value) |
java.lang.String |
getPrefix() |
static Role |
getRelative(Role role,
int relative) |
TL |
getTranslation() |
boolean |
isAtLeast(Role role) |
boolean |
isAtMost(Role role) |
java.lang.String |
replacePlaceholders(java.lang.String string) |
java.lang.String |
toString() |
static Role |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfnamepublic static final Role LEADER
public static final Role COLEADER
public static final Role MODERATOR
public static final Role NORMAL
public static final Role RECRUIT
public final int value
public final java.lang.String nicename
public final TL translation
public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static Role valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Role getByValue(int value)
public static Role fromString(java.lang.String check)
public boolean isAtLeast(Role role)
public boolean isAtMost(Role role)
public java.lang.String toString()
toString in class java.lang.Enum<Role>public TL getTranslation()
public java.lang.String getPrefix()
public org.bukkit.inventory.ItemStack buildItem()
buildItem in interface Permissablepublic java.lang.String replacePlaceholders(java.lang.String string)
replacePlaceholders in interface Permissable