Enum Class ScoreboardEvent

java.lang.Object
java.lang.Enum<ScoreboardEvent>
me.remigio07.chatplugin.api.server.scoreboard.event.ScoreboardEvent
All Implemented Interfaces:
Serializable, Comparable<ScoreboardEvent>, Constable

public enum ScoreboardEvent extends Enum<ScoreboardEvent>
Represents an event that triggers a Scoreboard of type ScoreboardType.EVENT.
  • Enum Constant Details

    • JOIN

      public static final ScoreboardEvent JOIN
      Event triggered when a player joins.
    • FIRST_JOIN

      public static final ScoreboardEvent FIRST_JOIN
      Event triggered when a player joins for the first time.
    • ENTITY_ATTACK

      public static final ScoreboardEvent ENTITY_ATTACK
      Event triggered when a player attacks an entity.
    • COMBAT_TAG

      public static final ScoreboardEvent COMBAT_TAG
      Event triggered when a player tags another player.
    • BLOCK_PLACE

      public static final ScoreboardEvent BLOCK_PLACE
      Event triggered when a player places a block.
    • BLOCK_BREAK

      public static final ScoreboardEvent BLOCK_BREAK
      Event triggered when a player breaks a block.
    • CHANGED_WORLD

      public static final ScoreboardEvent CHANGED_WORLD
      Event triggered when a player changes world.
    • DEATH

      public static final ScoreboardEvent DEATH
      Event triggered when a player dies.
    • RESPAWN

      public static final ScoreboardEvent RESPAWN
      Event triggered when a player respawns.
    • BED_ENTER

      public static final ScoreboardEvent BED_ENTER
      Event triggered when a player enters a bed.
    • BED_LEAVE

      public static final ScoreboardEvent BED_LEAVE
      Event triggered when a player leaves a bed.
    • CHAT

      public static final ScoreboardEvent CHAT
      Event triggered when a player sends a message.
    • FISH

      public static final ScoreboardEvent FISH
      Event triggered when a player catches something while fishing.
    • LEVEL_CHANGE

      public static final ScoreboardEvent LEVEL_CHANGE
      Event triggered when a player changes their level.
    • LOCALE_CHANGE

      public static final ScoreboardEvent LOCALE_CHANGE
      Event triggered when a player changes their language.
    • RESOURCE_PACK_STATUS

      public static final ScoreboardEvent RESOURCE_PACK_STATUS
      Event triggered when a player changes their resource pack's status.
    • REGION_ENTER

      public static final ScoreboardEvent REGION_ENTER
      Event triggered when a player enters a region.
    • REGION_LEAVE

      public static final ScoreboardEvent REGION_LEAVE
      Event triggered when a player leaves a region.
  • Method Details

    • values

      public static ScoreboardEvent[] 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 ScoreboardEvent 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
    • getPlaceholders

      public String[] getPlaceholders()
      Gets the array containing all available placeholders that can be translated with this event's information.
      Returns:
      Event's placeholders
    • getID

      public String getID()
      Gets this event's ID.

      It is obtained by lowering Enum.name()'s case and replacing '_' with '-'.

      Example: BED_ENTER -> "bed-enter"

      Returns:
      Event's ID
    • get

      public static ScoreboardEvent get(String id)
      Gets a scoreboard's event by its ID.

      Will return null if specified ID does not belong to any event.

      Parameters:
      id - Event's ID (getID())
      Returns:
      Scoreboard's event