Class EscalationTrack
java.lang.Object
space.arim.libertybans.api.punish.EscalationTrack
Identifies the associated escalation track for a punishment.
For example, a certain rulebreaking infraction such as spamming the chat may be associated to progressively stricter warnings and/or mutes. The escalation track here might be identified as "chat_spamming".
Note that the use of colons in namespaces and values is not permitted, as the colon is a special character reserved for the implementation. Moreover, it is highly recommended to use namespaces and values without any whitespace, for convenience in executing user commands.
For example, a certain rulebreaking infraction such as spamming the chat may be associated to progressively stricter warnings and/or mutes. The escalation track here might be identified as "chat_spamming".
Note that the use of colons in namespaces and values is not permitted, as the colon is a special character reserved for the implementation. Moreover, it is highly recommended to use namespaces and values without any whitespace, for convenience in executing user commands.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe default namespace for escalation tracks. -
Method Summary
Modifier and TypeMethodDescriptionstatic EscalationTrackCreates a track with a given namespace and valuestatic EscalationTrackcreateDefault(String value) Creates a track in the default namespacebooleanGets the namespacegetValue()Gets the valueinthashCode()toString()
-
Field Details
-
DEFAULT_NAMESPACE
The default namespace for escalation tracks. This is typically used by the main implementation of LibertyBans- See Also:
-
-
Method Details
-
create
Creates a track with a given namespace and value- Parameters:
namespace- the namespacevalue- the value- Returns:
- the escalation track
-
createDefault
Creates a track in the default namespace- Parameters:
value- the value- Returns:
- the escalation track
-
getNamespace
-
getValue
-
equals
-
hashCode
-
toString
-