Enum Class Settings.Events

java.lang.Object
java.lang.Enum<Settings.Events>
io.github.dexrnzacattack.rrdiscordbridge.config.Settings.Events
All Implemented Interfaces:
Serializable, Comparable<Settings.Events>, Constable
Enclosing class:
Settings

public static enum Settings.Events extends Enum<Settings.Events>
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

  • Enum Constant Details

    • PLAYER_JOIN

      public static final Settings.Events PLAYER_JOIN
      Sends an event message on player join
    • PLAYER_LEAVE

      public static final Settings.Events PLAYER_LEAVE
      Sends an event message on player leave
    • PLAYER_KICK

      public static final Settings.Events PLAYER_KICK
      Sends an event message on player kick
    • PLAYER_DEATH

      public static final Settings.Events PLAYER_DEATH
      Sends an event message on player death
    • PLAYER_CHAT

      public static final Settings.Events PLAYER_CHAT
      Sends a message on player chat
    • PLAYER_ACHIEVEMENT

      public static final Settings.Events PLAYER_ACHIEVEMENT
      Sends a message when the player gets an achievement/advancement/goal
    • SERVER_START

      public static final Settings.Events SERVER_START
      Sends an event message on server start
    • SERVER_STOP

      public static final Settings.Events SERVER_STOP
      Sends an event message on server stop
    • SAY_BROADCAST

      public static final Settings.Events SAY_BROADCAST
      When /say is used
    • FANCY_BROADCAST

      public static final Settings.Events FANCY_BROADCAST
      When /dcbroadcast is used
    • ME_COMMAND

      public static final Settings.Events ME_COMMAND
      When /me is used
    • GENERIC_OTHER

      public static final Settings.Events GENERIC_OTHER
      Sends an event message when other events happen
  • Method Details

    • values

      public static Settings.Events[] 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

      public static Settings.Events valueOf(String name)
      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 name
      NullPointerException - if the argument is null