Enum RejoinPlayerCause

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

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

    • COMMAND

      public static final RejoinPlayerCause COMMAND
      He used a command (/mbedwars rejoin).
    • JOIN_DIRECTLY

      public static final RejoinPlayerCause JOIN_DIRECTLY
      He tried to join the arena directly (e.g. /mbedwars join or arenasgui).
    • END_LOBBY

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

      This is a special conditon. Unlike other causes, the status of the arena must match ArenaStatus.END_LOBBY.

    • PLUGIN

      public static final RejoinPlayerCause PLUGIN
      A plugin made him rejoin using the API.
    • UNKNOWN

      public static final RejoinPlayerCause UNKNOWN
      We received a request from a remote server (proxy), but couldn't identify the cause.
  • Method Details

    • values

      public static RejoinPlayerCause[] 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 RejoinPlayerCause 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