Enum KickReason

All Implemented Interfaces:
Serializable, Comparable<KickReason>, java.lang.constant.Constable

public enum KickReason extends Enum<KickReason>
The reason why a player has left an arena.
Used by inter alia Arena.kickPlayer(org.bukkit.entity.Player, KickReason) and PlayerQuitArenaEvent.getReason()
  • Enum Constant Details

    • LEAVE

      public static final KickReason LEAVE
      Player left the arena
    • KICK

      public static final KickReason KICK
      Player got kicked by e.g. /bw kick

      public static final KickReason GAME_LOSE
      Player died ingame while his bed was broken
    • GAME_END

      public static final KickReason GAME_END
      Player got kicked as the game ended

      public static final KickReason LOBBY_NEED_SLOT
      Player got kicked during lobby phase as someone with a higher role wants to join the full arena

      public static final KickReason VOTING_SWITCH_ARENA
      Voting has ended and player got moved to the new arena

      public static final KickReason PARTY_SWITCH_ARENA
      A party plugin caused the player to switch from one arena to another

      public static final KickReason FORCE_SWITCH_ARENA
      AddRemotePlayerInfo.setForcefully(boolean) forced him to switch to another arena.
    • PLUGIN

      public static final KickReason PLUGIN
      A plugin has kicked the player
  • Method Details

    • values

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

      public static KickReason 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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null