Interface CancellableEvent

All Superinterfaces:
ChatPluginEvent
All Known Implementing Classes:
ActionbarSendEvent, AdSendEvent, AllowChatEvent, AllowPrivateMessageEvent, BossbarSendEvent, ChatPluginCrashEvent, EmbedMessageSendEvent, F3ServerNameSendEvent, FakeKickEvent, GUIClickEvent, GUIOpenEvent, IgnoreEvent, IPLookupCleanCacheEvent, MessageSendEvent, PlainMessageSendEvent, PlayerPingEvent, PreChatEvent, PrePrivateMessageEvent, ScoreboardAddPlayerEvent, StaffChatEvent, StatusUpdateEvent, StatusUpdateEvent, TablistSendEvent, ToggleChatMuteEvent, UnignoreEvent

public interface CancellableEvent extends ChatPluginEvent
Represents a cancellable event.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this event has been cancelled and will not be executed.
    void
    setCancelled(boolean cancelled)
    Sets the cancellation state of this event.

    Methods inherited from interface me.remigio07.chatplugin.api.common.event.ChatPluginEvent

    call
  • Method Details

    • isCancelled

      boolean isCancelled()
      Checks if this event has been cancelled and will not be executed.
      Returns:
      Whether this event is cancelled
    • setCancelled

      void setCancelled(boolean cancelled)
      Sets the cancellation state of this event.

      It will be passed through other registered listeners even if it is cancelled, but it will not be executed.

      Parameters:
      cancelled - Whether this event should be cancelled