Class MVWorldDeleteEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.onarandombox.MultiverseCore.event.MVWorldDeleteEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class MVWorldDeleteEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Called when a world is about to be deleted by Multiverse.
-
-
Constructor Summary
Constructors Constructor Description MVWorldDeleteEvent(MultiverseWorld world, boolean removeFromConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.bukkit.event.HandlerList
getHandlerList()
Gets the handler list.org.bukkit.event.HandlerList
getHandlers()
MultiverseWorld
getWorld()
Gets the world that's about to be deleted.boolean
isCancelled()
boolean
removeWorldFromConfig()
Is the world about to be removed from the config?void
setCancelled(boolean cancel)
-
-
-
Constructor Detail
-
MVWorldDeleteEvent
public MVWorldDeleteEvent(MultiverseWorld world, boolean removeFromConfig)
-
-
Method Detail
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
Gets the handler list. This is required by the event system.- Returns:
- A list of HANDLERS.
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getWorld
public MultiverseWorld getWorld()
Gets the world that's about to be deleted.- Returns:
- That
MultiverseWorld
.
-
removeWorldFromConfig
public boolean removeWorldFromConfig()
Is the world about to be removed from the config?- Returns:
- True if yes, false if no.
-
-