Class ArenaDeleteEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaDeleteEvent
All Implemented Interfaces:
ArenaEvent, Cancellable

public class ArenaDeleteEvent extends Event implements ArenaEvent, Cancellable
Gets called when an arena gets deleted.

This event might not be called when i.a. the server shuts down. If you want to catch them all to e.g. update a Map, use ArenaUnloadEvent.

  • Constructor Details

  • Method Details

    • getSender

      @Nullable public @Nullable CommandSender getSender()
      Returns the person who deleted the arena.

      Can be null when something else deleted it (such as a plugin or a player remotely).

      Returns:
      The person behind this
    • getSenderWrapped

      @Nullable public @Nullable CommandSenderWrapper getSenderWrapped()
      Returns the person who deleted the arena.

      Can be null when someone else deleted it (such as a plugin).

      Returns:
      The person behind this
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface Cancellable
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()