Enum AddPlayerCause

java.lang.Object
java.lang.Enum<AddPlayerCause>
de.marcely.bedwars.api.arena.AddPlayerCause
All Implemented Interfaces:
Serializable, Comparable<AddPlayerCause>, java.lang.constant.Constable

public enum AddPlayerCause extends Enum<AddPlayerCause>
The reason why a player joined an arena.
  • Enum Constant Details

    • COMMAND

      public static final AddPlayerCause COMMAND
      He used a command (/mbedwars join).
    • SIGN

      public static final AddPlayerCause SIGN
      He clicked on a sign (/mbedwars spawn joinarenasign).
    • SETUP_GUI

      public static final AddPlayerCause SETUP_GUI
      He used the setup gui (opened with /mbedwars arena setupgui)
    • ARENAS_GUI

      public static final AddPlayerCause ARENAS_GUI
      He used an arenas gui (opened with /mbedwars arenasgui)
    • AUTO_JOIN

      public static final AddPlayerCause AUTO_JOIN
      auto-join feature caused him to join the arena as he entered the server.
    • SPECTATOR_FIND_NEXT_ROUND

      public static final AddPlayerCause SPECTATOR_FIND_NEXT_ROUND
    • VOTING_SWITCH_ARENA

      public static final AddPlayerCause VOTING_SWITCH_ARENA
      Voting has ended, and he now joined the arena that won.
    • PARTY_SWITCH_ARENA

      public static final AddPlayerCause PARTY_SWITCH_ARENA
      He got pulled into the arena by his party as his leader wants to join the arena.
    • END_LOBBY

      public static final AddPlayerCause END_LOBBY
      The match ended and players that died during the match - thus become spectators - get re-added to the end lobby.

      The status of the arena must match ArenaStatus.END_LOBBY.

    • PLUGIN

      public static final AddPlayerCause PLUGIN
      A plugin made him enter it using the API.
  • Method Details

    • values

      public static AddPlayerCause[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AddPlayerCause valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null