Class ArenaDeleteEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaDeleteEvent
- All Implemented Interfaces:
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
.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
@Nullable CommandSender
Returns the person who deleted the arena.@Nullable CommandSenderWrapper
Returns the person who deleted the arena.boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArena
-
Constructor Details
-
ArenaDeleteEvent
-
-
Method Details
-
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
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 interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-