Class ActionbarSendEvent

java.lang.Object
me.remigio07.chatplugin.api.server.event.actionbar.ActionbarSendEvent
All Implemented Interfaces:
CancellableEvent, ChatPluginEvent, ChatPluginPlayerEvent, ChatPluginServerPlayerEvent

public class ActionbarSendEvent extends Object implements CancellableEvent, ChatPluginServerPlayerEvent
Represents an event called when an Actionbar is sent to a player.
See Also:
  • Constructor Details

    • ActionbarSendEvent

      public ActionbarSendEvent(Actionbar actionbar, ChatPluginServerPlayer player)
      Constructs a new actionbar send event.
      Parameters:
      actionbar - Actionbar involved
      player - Player involved
  • Method Details

    • isCancelled

      public boolean isCancelled()
      Description copied from interface: CancellableEvent
      Checks if this event has been cancelled and will not be executed.
      Specified by:
      isCancelled in interface CancellableEvent
      Returns:
      Whether this event is cancelled
    • setCancelled

      public void setCancelled(boolean cancelled)
      Description copied from interface: CancellableEvent
      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.

      Specified by:
      setCancelled in interface CancellableEvent
      Parameters:
      cancelled - Whether this event should be cancelled
    • getPlayer

      public ChatPluginServerPlayer getPlayer()
      Description copied from interface: ChatPluginServerPlayerEvent
      Gets the player involved with this event.
      Specified by:
      getPlayer in interface ChatPluginPlayerEvent
      Specified by:
      getPlayer in interface ChatPluginServerPlayerEvent
      Returns:
      Player involved
    • getActionbar

      public Actionbar getActionbar()
      Gets the actionbar sent to the player.
      Returns:
      Actionbar sent