Package com.griefdefender.api.event
Interface PermissionEvent
- All Superinterfaces:
net.kyori.event.Cancellable,Event
- All Known Subinterfaces:
FlagPermissionEvent,FlagPermissionEvent.Clear,FlagPermissionEvent.ClearAll,FlagPermissionEvent.Set,OptionPermissionEvent,OptionPermissionEvent.Clear,OptionPermissionEvent.ClearAll,OptionPermissionEvent.Set,QueryPermissionEvent,QueryPermissionEvent.Post,QueryPermissionEvent.Pre
-
Method Summary
Modifier and TypeMethodDescriptionGets theContext's associated with event.Optional<net.kyori.adventure.text.Component> Gets the claim message.Gets the permission;Gets theSubjectvoidsetMessage(net.kyori.adventure.text.Component message) Sets the claim message to be presented toSubjectif applicable.Methods inherited from interface net.kyori.event.Cancellable
cancelled, cancelled
-
Method Details
-
getPermission
String getPermission()Gets the permission;- Returns:
- the permission
-
getSubject
Subject getSubject()Gets theSubject- Returns:
- The subject
-
getContexts
Gets theContext's associated with event.- Returns:
- The context set or empty set
-
setMessage
void setMessage(net.kyori.adventure.text.Component message) Sets the claim message to be presented toSubjectif applicable.- Parameters:
message- The message
-
getMessage
Optional<net.kyori.adventure.text.Component> getMessage()Gets the claim message. Note: This is only available if event was cancelled.- Returns:
- The claim message, if available
-