public enum TownSpawnLevel extends java.lang.Enum<TownSpawnLevel>
Enum Constant and Description |
---|
ADMIN |
NATION_ALLY |
PART_OF_NATION |
TOWN_RESIDENT |
TOWN_RESIDENT_OUTPOST |
UNAFFILIATED |
Modifier and Type | Method and Description |
---|---|
void |
checkIfAllowed(Towny plugin,
org.bukkit.entity.Player player) |
double |
getCost() |
boolean |
hasPermissionNode(Towny plugin,
org.bukkit.entity.Player player) |
boolean |
isAllowed() |
static TownSpawnLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TownSpawnLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TownSpawnLevel TOWN_RESIDENT
public static final TownSpawnLevel TOWN_RESIDENT_OUTPOST
public static final TownSpawnLevel PART_OF_NATION
public static final TownSpawnLevel NATION_ALLY
public static final TownSpawnLevel UNAFFILIATED
public static final TownSpawnLevel ADMIN
public static TownSpawnLevel[] values()
for (TownSpawnLevel c : TownSpawnLevel.values()) System.out.println(c);
public static TownSpawnLevel 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 void checkIfAllowed(Towny plugin, org.bukkit.entity.Player player) throws TownyException
TownyException
public boolean isAllowed()
public boolean hasPermissionNode(Towny plugin, org.bukkit.entity.Player player)
public double getCost()