Package com.lahuca.botsentry.api.data
Enum Class ListType
- All Implemented Interfaces:
Serializable
,Comparable<ListType>
,Constable
Enum for the different list types, retrieved in the
BotSentryAPI
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionValue for the blacklist.Value for the forced IPs whitelist.Value for the not forced IPs whitelist.Value for the usernames whitelist. -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
WHITELIST_NOT_FORCED
Value for the not forced IPs whitelist. These IPs can be removed from this whitelist by detection methods. -
WHITELIST_FORCED
Value for the forced IPs whitelist. These IPs can only be removed through the API or BotSentry commands. -
WHITELIST_USERNAMES
Value for the usernames whitelist. A player that joins with a username in this list, will automatically add their IP to theWHITELIST_NOT_FORCED
. -
BLACKLIST
Value for the blacklist.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-