Enum AddPlayerIssue

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

public enum AddPlayerIssue extends Enum<AddPlayerIssue>
Reasons why a player failed to enter an arena
  • Enum Constant Details

    • FULL

      public static final AddPlayerIssue FULL
      Player failed to enter since the arena is already full
    • ALREADY_INSIDE

      public static final AddPlayerIssue ALREADY_INSIDE
      Task failed since he's already inside an arena.
    • MUST_JOIN_VOTING

      public static final AddPlayerIssue MUST_JOIN_VOTING
      Voting has been enabled in the config file, but the player still entered a normal arena
    • VOTING_MUST_JOIN_NORMAL

      public static final AddPlayerIssue VOTING_MUST_JOIN_NORMAL
      Voting is disabled, but he tried to enter a voting arena
    • NOT_BETA_USER

      public static final AddPlayerIssue NOT_BETA_USER
      Beta mode is enabled and player doesn't have the Permissions.BETA_USER permission.
    • ARENA_ISSUE_MISSING_WORLD

      public static final AddPlayerIssue ARENA_ISSUE_MISSING_WORLD
      The world of the arena has been unloaded.
    • PLUGIN

      public static final AddPlayerIssue PLUGIN
      Player failed to enter as a plugin caused the task to cancel
  • Method Details

    • values

      public static AddPlayerIssue[] 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 AddPlayerIssue 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
    • getHintMessage

      @Nullable public @Nullable Message getHintMessage(Arena arena)
      Returns the message that will be displayed to the player.

      May be null when none will be displayed in the given case.

      Parameters:
      arena - The arena to which the player has been added
      Returns:
      The message that will get displayed to the player. May be null
    • getHintMessage

      @Nullable public @Nullable Message getHintMessage(RemoteArena arena)
      Returns the message that will be displayed to the player.

      May be null when none will be displayed in the given case.

      Parameters:
      arena - The arena to which the player has been added
      Returns:
      The message that will get displayed to the player. May be null