Enum Class Settings.Events
- All Implemented Interfaces:
Serializable
,Comparable<Settings.Events>
,Constable
- Enclosing class:
Settings
Every in-game event is a different type of message that can be sent into the relay channel
An event can be disabled by removing it from the Settings.enabledEvents
array
This is done by editing config.json
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhen /dcbroadcast is usedSends an event message when other events happenWhen /me is usedSends a message when the player gets an achievement/advancement/goalSends a message on player chatSends an event message on player deathSends an event message on player joinSends an event message on player kickSends an event message on player leaveWhen /say is usedSends an event message on server startSends an event message on server stop -
Method Summary
Modifier and TypeMethodDescriptionstatic Settings.Events
Returns the enum constant of this class with the specified name.static Settings.Events[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAYER_JOIN
Sends an event message on player join -
PLAYER_LEAVE
Sends an event message on player leave -
PLAYER_KICK
Sends an event message on player kick -
PLAYER_DEATH
Sends an event message on player death -
PLAYER_CHAT
Sends a message on player chat -
PLAYER_ACHIEVEMENT
Sends a message when the player gets an achievement/advancement/goal -
SERVER_START
Sends an event message on server start -
SERVER_STOP
Sends an event message on server stop -
SAY_BROADCAST
When /say is used -
FANCY_BROADCAST
When /dcbroadcast is used -
ME_COMMAND
When /me is used -
GENERIC_OTHER
Sends an event message when other events happen
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-