public enum SpawningMode extends Enum<SpawningMode>
Enum Constant and Description |
---|
PROXIMITY_HIGH
Spawn points will be selected based on proximity to other players.
|
RANDOM
Spawn points will be selected completely randomly.
|
SEQUENTIAL
Spawn points will be selected in respective order.
|
SHUFFLE
Available spawn points will be shuffled and then selected sequentially
from the new, shuffled list.
|
Modifier and Type | Method and Description |
---|---|
static SpawningMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpawningMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpawningMode SEQUENTIAL
public static final SpawningMode RANDOM
public static final SpawningMode SHUFFLE
Note: modifying an arena's spawn list will reset its shuffle order, as will restarting/reloading the plugin.
public static final SpawningMode PROXIMITY_HIGH
public static SpawningMode[] values()
for (SpawningMode c : SpawningMode.values()) System.out.println(c);
public static SpawningMode 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 null