T
- The value type associated with this ConfigNode
public class ConfigNode<T>
extends java.lang.Object
Minigame
.Modifier and Type | Field and Description |
---|---|
static RoundConfigNode<java.lang.Boolean> |
ALLOW_DAMAGE
Whether
Challenger s are permitted to damage one another. |
static RoundConfigNode<java.lang.Boolean> |
ALLOW_EXIT_BOUNDARY
|
static RoundConfigNode<java.lang.Boolean> |
ALLOW_FRIENDLY_FIRE
Whether
Challenger s are permitted to damage teammates. |
static ConfigNode<com.google.common.collect.ImmutableSet<LifecycleStage>> |
DEFAULT_LIFECYCLE_STAGES
The default
LifecycleStage s to apply to new Round s. |
static ConfigNode<java.lang.Boolean> |
ENABLE_LOBBY_WIZARD
Whether the integrated lobby wizard is enabled for a
Minigame . |
static RoundConfigNode<java.util.Set<java.lang.String>> |
FORBIDDEN_COMMANDS
A
Set of commands forbidden from use by player entered into
minigame Round s. |
static RoundConfigNode<java.lang.Integer> |
MAX_PLAYERS
The maximum permitted player count.
|
static RoundConfigNode<java.lang.Boolean> |
RANDOM_SPAWNING
Deprecated.
Use
SPAWNING_MODE |
static ConfigNode<java.lang.Boolean> |
REQUIRE_SNEAK_TO_DESTROY_LOBBY
Whether an in-game player must be sneaking in order to destroy a physical
LobbySign . |
static RoundConfigNode<java.lang.Boolean> |
ROLLBACK_ON_END
Whether
Round s shall be rolled back by default upon ending. |
static RoundConfigNode<java.lang.Boolean> |
SEPARATE_ROUND_CHATS
Whether
Round s are to use separate chat channels. |
static RoundConfigNode<java.lang.Boolean> |
SEPARATE_TEAM_CHATS
Whether
Team s are to use separate chat channels. |
static RoundConfigNode<SpawningMode> |
SPAWNING_MODE
The mode which should be used when selecting spawn points.
|
static RoundConfigNode<java.lang.Boolean> |
WITHHOLD_SPECTATOR_CHAT
Whether messages sent by spectators are to be withheld from
non-spectators.
|
Modifier | Constructor and Description |
---|---|
protected |
ConfigNode(T defaultValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
T |
getDefaultValue()
Returns this
ConfigNode 's default value. |
int |
hashCode() |
public static final ConfigNode<com.google.common.collect.ImmutableSet<LifecycleStage>> DEFAULT_LIFECYCLE_STAGES
public static final ConfigNode<java.lang.Boolean> ENABLE_LOBBY_WIZARD
Minigame
.
When enabled, the lobby wizard will be available to in-game players
with the permission nodes <minigame name>.lobby.create
,
<minigame name>.lobby.*
, or <minigame name>.*
, or with
server operator status. It will be activated when a sign is placed in the
world with the first line being the Minigame
's name within square
brackets ("[" and "]") and guide the player through the process of
creating the sign.
Defualt: true
public static final ConfigNode<java.lang.Boolean> REQUIRE_SNEAK_TO_DESTROY_LOBBY
LobbySign
.
If true
, left-clicking the lobby sign without sneaking will
not break it, regardless of gamemode or permissions. Rather, a
PlayerClickLobbySignEvent
will be called.
If false
, the sign will not be prevented from breaking, and if
broken, the sign will be unregistered and an event will not be called.
Default: true
public static final RoundConfigNode<java.lang.Integer> MAX_PLAYERS
Default: 32
public static final RoundConfigNode<java.lang.Boolean> ALLOW_EXIT_BOUNDARY
Challenger
s are permitted to physically leave their
Arena
s' Boundaries
. If false
(default),
they will be unconditionally forbidden from physically exiting the
boundary region while in a Round
. If true
, they will be
removed from the Round
upon leaving.
Default: false
public static final RoundConfigNode<java.lang.Boolean> ALLOW_DAMAGE
Challenger
s are permitted to damage one another.
Default: true
public static final RoundConfigNode<java.lang.Boolean> ALLOW_FRIENDLY_FIRE
Challenger
s are permitted to damage teammates.
Default: true
public static final RoundConfigNode<java.lang.Boolean> SEPARATE_TEAM_CHATS
Team
s are to use separate chat channels.
Default: false
public static final RoundConfigNode<java.lang.Boolean> SEPARATE_ROUND_CHATS
Round
s are to use separate chat channels.
Default: true
public static final RoundConfigNode<java.lang.Boolean> WITHHOLD_SPECTATOR_CHAT
Default: true
public static final RoundConfigNode<java.lang.Boolean> ROLLBACK_ON_END
Round
s shall be rolled back by default upon ending.
Default: true
public static final RoundConfigNode<SpawningMode> SPAWNING_MODE
SpawningMode
for more information.)
Default: SpawningMode.SEQUENTIAL
@Deprecated public static final RoundConfigNode<java.lang.Boolean> RANDOM_SPAWNING
SPAWNING_MODE
Challenger
s entering
rounds randomly. If false
, spawn points will be selected
sequentially.
Default: false
public static final RoundConfigNode<java.util.Set<java.lang.String>> FORBIDDEN_COMMANDS
protected ConfigNode(T defaultValue)
public T getDefaultValue()
ConfigNode
's default value.ConfigNode
's default valuepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object