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

public interface PermissionEvent extends net.kyori.event.Cancellable, Event
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the Context's associated with event.
    Optional<net.kyori.adventure.text.Component>
    Gets the claim message.
    Gets the permission;
    Gets the Subject
    void
    setMessage(net.kyori.adventure.text.Component message)
    Sets the claim message to be presented to Subject if applicable.

    Methods inherited from interface net.kyori.event.Cancellable

    cancelled, cancelled

    Methods inherited from interface com.griefdefender.api.event.Event

    getCause
  • Method Details

    • getPermission

      String getPermission()
      Gets the permission;
      Returns:
      the permission
    • getSubject

      Subject getSubject()
      Gets the Subject
      Returns:
      The subject
    • getContexts

      Set<Context> getContexts()
      Gets the Context'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 to Subject if 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