Enum Class ListType

java.lang.Object
java.lang.Enum<ListType>
com.lahuca.botsentry.api.data.ListType
All Implemented Interfaces:
Serializable, Comparable<ListType>, Constable

public enum ListType extends Enum<ListType>
Enum for the different list types, retrieved in the BotSentryAPI.
  • Enum Constant Details

    • WHITELIST_NOT_FORCED

      public static final ListType WHITELIST_NOT_FORCED
      Value for the not forced IPs whitelist. These IPs can be removed from this whitelist by detection methods.
    • WHITELIST_FORCED

      public static final ListType WHITELIST_FORCED
      Value for the forced IPs whitelist. These IPs can only be removed through the API or BotSentry commands.
    • WHITELIST_USERNAMES

      public static final ListType WHITELIST_USERNAMES
      Value for the usernames whitelist. A player that joins with a username in this list, will automatically add their IP to the WHITELIST_NOT_FORCED.
    • BLACKLIST

      public static final ListType BLACKLIST
      Value for the blacklist.
  • Method Details

    • values

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

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