Enum Class EnforcementOptions.Enforcement
java.lang.Object
java.lang.Enum<EnforcementOptions.Enforcement>
space.arim.libertybans.api.punish.EnforcementOptions.Enforcement
- All Implemented Interfaces:
Serializable, Comparable<EnforcementOptions.Enforcement>, Constable
- Enclosing interface:
EnforcementOptions
How the punishment can be enforced.
With regards to enacting punishments, enforcement means the kicking of players and the sending of messages to them. If a punishment is not enforced, no players are kicked and no messages are sent to them.
With regards to undoing punishments, unenforcement means the purging of any relevant caches related to punishments (such as a mute cache).
With regards to enacting punishments, enforcement means the kicking of players and the sending of messages to them. If a punishment is not enforced, no players are kicked and no messages are sent to them.
With regards to undoing punishments, unenforcement means the purging of any relevant caches related to punishments (such as a mute cache).
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe punishment is enforced on the entire network of servers (if applicable) or single server.No enforcement is performedThe punishment is enforced only on the current server. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisGlobal()Convenience method to check whether this isGLOBALReturns the enum constant of this class with the specified name.static EnforcementOptions.Enforcement[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GLOBAL
The punishment is enforced on the entire network of servers (if applicable) or single server. As necessary, the punishment is sent to other instances.
This is the normal mode of punishment enforcement -
SINGLE_SERVER_ONLY
The punishment is enforced only on the current server. It is not sent to other instances. -
NONE
No enforcement is performed
-
-
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
-
isGlobal
public boolean isGlobal()Convenience method to check whether this isGLOBAL- Returns:
- true if this is the global option
-