Class PartyDeleteEvent

  • All Implemented Interfaces:
    org.bukkit.event.Cancellable

    public class PartyDeleteEvent
    extends org.bukkit.event.Event
    implements org.bukkit.event.Cancellable
    Handles the event fired when a party is deleted.
    • Constructor Detail

      • PartyDeleteEvent

        public PartyDeleteEvent​(Party party)
        Fired when a party is deleted.
        Parameters:
        party - The party being deleted.
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Whether or not the party is being deleted because it is empty. If the party is not empty then it is being deleted because the leader disbanded it.
        Returns:
        Whether or not the party is empty.
      • getParty

        public Party getParty()
        Get the party that is being deleted.
        Returns:
        Party being deleted.
      • 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
      • getHandlers

        @NotNull
        public @NotNull org.bukkit.event.HandlerList getHandlers()
        Specified by:
        getHandlers in class org.bukkit.event.Event
      • getHandlerList

        public static org.bukkit.event.HandlerList getHandlerList()