Package net.luckperms.api.actionlog
Interface ActionLogger
public interface ActionLogger
Represents the object responsible for handling action logging.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a newAction.BuilderinstancebroadcastAction(@NonNull Action entry) Submits a log entry to the plugins log broadcasting handler.getLog()Gets aActionLoginstance from the plugin storage.Submits a log entry to the plugin to be handled.submitToStorage(@NonNull Action entry) Submits a log entry to the plugins storage handler.
-
Method Details
-
actionBuilder
@NonNull Action.Builder actionBuilder()Returns a newAction.Builderinstance- Returns:
- a new builder
-
getLog
@NonNull CompletableFuture<ActionLog> getLog()Gets aActionLoginstance from the plugin storage.- Returns:
- a log instance
-
submit
Submits a log entry to the plugin to be handled.This method submits the log to the storage provider and broadcasts it.
It is therefore roughly equivalent to calling
submitToStorage(Action)andbroadcastAction(Action), however, using this method is preferred to making the calls individually.If you want to submit a log entry but don't know which method to pick, use this one.
- Parameters:
entry- the entry to submit- Returns:
- a future which will complete when the action is done
-
submitToStorage
Submits a log entry to the plugins storage handler.- Parameters:
entry- the entry to submit- Returns:
- a future which will complete when the action is done
-
broadcastAction
Submits a log entry to the plugins log broadcasting handler.If enabled, this method will also dispatch the log entry via the plugins
MessagingService.- Parameters:
entry- the entry to submit- Returns:
- a future which will complete when the action is done
-