Package net.luckperms.api.event.log
Interface LogNotifyEvent
-
- All Superinterfaces:
Cancellable,LuckPermsEvent
public interface LogNotifyEvent extends LuckPermsEvent, Cancellable
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 Classes Modifier and Type Interface Description static classLogNotifyEvent.OriginRepresents where a log entry is from
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull ActiongetEntry()Gets the log entry to be sent@NonNull PlatformEntitygetNotifiable()Gets the object to be notified.@NonNull LogNotifyEvent.OrigingetOrigin()Gets where the log entry originated from.-
Methods inherited from interface net.luckperms.api.event.type.Cancellable
cancellationState, isCancelled, isNotCancelled, setCancelled
-
Methods inherited from interface net.luckperms.api.event.LuckPermsEvent
getEventType, getLuckPerms
-
-
-
-
Method Detail
-
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
-
-