Package net.luckperms.api.event.log
Interface LogNotifyEvent
- All Superinterfaces:
Cancellable,LuckPermsEvent
Called when a log entry is about to be sent to specific notifiable object on
the platform.
This event is not called for players without the notify permission, but is called for objects which are ignoring log notifications (called with the cancelled flag set to true).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents where a log entry is from -
Method Summary
Modifier and TypeMethodDescriptiongetEntry()Gets the log entry to be sentGets the object to be notified.Gets where the log entry originated from.Methods inherited from interface net.luckperms.api.event.type.Cancellable
cancellationState, isCancelled, isNotCancelled, setCancelledMethods inherited from interface net.luckperms.api.event.LuckPermsEvent
getEventType, getLuckPerms
-
Method Details
-
getEntry
Gets the log entry to be sent- Returns:
- the log entry to be sent
-
getOrigin
@NonNull LogNotifyEvent.Origin getOrigin()Gets where the log entry originated from.- Returns:
- the origin of the log
-
getNotifiable
@NonNull PlatformEntity getNotifiable()Gets the object to be notified.- Returns:
- the object to notify
-