Package net.luckperms.api.actionlog
Interface Action
- All Superinterfaces:
Comparable<Action>
Represents a logged action.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds anActioninstancestatic interfaceRepresents the source of an action.static interfaceRepresents the target of an action. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull Action.Builderbuilder()Gets aAction.BuilderReturns a string describing the action which took place.Gets the source of the action.Gets the target of the action.Gets the time when the action occurred.Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
builder
Gets aAction.Builder- Returns:
- a new builder
-
getTimestamp
Gets the time when the action occurred.- Returns:
- the timestamp
-
getSource
@NonNull Action.Source getSource()Gets the source of the action.- Returns:
- the source
-
getTarget
@NonNull Action.Target getTarget()Gets the target of the action.- Returns:
- the target
-
getDescription
Returns a string describing the action which took place.In most instances, this returns a variation of the command string which caused the change.
- Returns:
- the action
-