Interface EventSubscription<T extends LuckPermsEvent>

    • Method Detail

      • getEventClass

        @NonNull Class<T> getEventClass()
        Gets the class this handler is listening to
        Returns:
        the event class
      • isActive

        boolean isActive()
        Returns true if this handler is active
        Returns:
        true if this handler is still active
      • close

        void close()
        Unregisters this handler from the event bus.
        Specified by:
        close in interface AutoCloseable
      • getHandler

        @NonNull Consumer<? super T> getHandler()
        Gets the event consumer responsible for handling the event
        Returns:
        the event consumer