Package net.luckperms.api.actionlog
Interface ActionLog
public interface ActionLog
Represents the internal LuckPerms log.
The returned instance provides a copy of the data at the time of retrieval.
Any changes made to log entries will only apply to this instance of the log.
You can add to the log using the ActionLogger, and then request an updated copy.
All methods are thread safe, and return immutable and thread safe collections.
-
Method Summary
Modifier and TypeMethodDescriptionGets theActions that make up this log.getContent(@NonNull UUID actor) Gets the entries in the log performed by the given actor.getGroupHistory(@NonNull String name) Gets the log content for a given groupgetTrackHistory(@NonNull String name) Gets the log content for a given trackgetUserHistory(@NonNull UUID uniqueId) Gets the log content for a given user
-
Method Details
-
getContent
@NonNull @Unmodifiable SortedSet<Action> getContent()Gets theActions that make up this log.- Returns:
- the content
-
getContent
Gets the entries in the log performed by the given actor.- Parameters:
actor- the uuid of the actor to filter by- Returns:
- the content for the given actor
-
getUserHistory
Gets the log content for a given user- Parameters:
uniqueId- the uuid to filter by- Returns:
- all content in this log where the user = uuid
-
getGroupHistory
Gets the log content for a given group- Parameters:
name- the name to filter by- Returns:
- all content in this log where the group = name
-
getTrackHistory
Gets the log content for a given track- Parameters:
name- the name to filter by- Returns:
- all content in this log where the track = name
-