Class FunnyEvent

java.lang.Object
org.bukkit.event.Event
net.dzikoysk.funnyguilds.event.FunnyEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable
Direct Known Subclasses:
AbstractRankEvent, GuildEntityExplodeEvent, GuildEvent

public abstract class FunnyEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
  • Constructor Details

  • Method Details

    • getEventCause

      public FunnyEvent.EventCause getEventCause()
    • getDoer

      public panda.std.Option<User> getDoer()
      Returns:
      the doer of the event, if doer wasn't a user the Option will be empty
    • getDefaultCancelMessage

      public abstract String getDefaultCancelMessage()
    • getCancelMessage

      public String getCancelMessage()
      The message that will be displayed for event doer when the event is cancelled.
      Returns:
      the set cancel message, if null the default cancel message will be returned.
    • setCancelMessage

      public void setCancelMessage(String cancelMessage)
      Sets the message that will be displayed for event doer when the event is cancelled.
      Parameters:
      cancelMessage - the cancel message
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable