Enum RejoinPlayerIssue

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

public enum RejoinPlayerIssue extends Enum<RejoinPlayerIssue>
Reasons why a player has failed to rejoin a match.
  • Enum Constant Details

    • PROCESS_ALREADY_RUNNING

      public static final RejoinPlayerIssue PROCESS_ALREADY_RUNNING
      Rejoin process has already been started and is currently running for the player.
    • NOT_PARTICIPATING

      public static final RejoinPlayerIssue NOT_PARTICIPATING
      The player is not participating in any game.
    • NOT_ACTIVE

      public static final RejoinPlayerIssue NOT_ACTIVE
      The game is not running anymore.
    • NOT_VALID_PLAYER

      public static final RejoinPlayerIssue NOT_VALID_PLAYER
      A new game is running in which the player wasn't present.
    • WENT_OFFLINE

      public static final RejoinPlayerIssue WENT_OFFLINE
      Rejoin calculation took too long. Player went offline in the meantime.
    • TEAM_DEAD

      public static final RejoinPlayerIssue TEAM_DEAD
      The bed of the team has been destroyed whereby the player may not respawn anymore.
    • SERVER_OFFLINE

      public static final RejoinPlayerIssue SERVER_OFFLINE
      Server didn't reply to rejoin request.
    • PLUGIN

      public static final RejoinPlayerIssue PLUGIN
      A custom cause.
  • Method Details

    • values

      public static RejoinPlayerIssue[] 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 RejoinPlayerIssue 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
    • getMessage

      public Message getMessage()
      Get the message that would be sent to the player.
      Returns:
      Gets a message instance that'd be sent with this given issue
    • byName

      @Nullable public static @Nullable RejoinPlayerIssue byName(String name)