Class CancellablePlayerEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
us.talabrek.ultimateskyblock.api.event.CancellablePlayerEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable
Direct Known Subclasses:
AcceptEvent, CreateIslandEvent, InviteEvent, IslandChatEvent, RejectEvent, RestartIslandEvent

public abstract class CancellablePlayerEvent extends org.bukkit.event.player.PlayerEvent implements org.bukkit.event.Cancellable
Common event for PlayerEvents that can be cancelled.
Since:
2.7.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    CancellablePlayerEvent(org.bukkit.entity.Player who)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    void
    setCancelled(boolean cancel)
     

    Methods inherited from class org.bukkit.event.player.PlayerEvent

    getPlayer

    Methods inherited from class org.bukkit.event.Event

    getEventName, getHandlers, isAsynchronous

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CancellablePlayerEvent

      public CancellablePlayerEvent(org.bukkit.entity.Player who)
  • Method Details

    • isCancelled

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

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