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.CancellableCalled 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.HandlerListgetHandlerList()Gets the handler list.org.bukkit.event.HandlerListgetHandlers()MultiverseWorldgetWorld()Gets the world that's about to be deleted.booleanisCancelled()booleanremoveWorldFromConfig()Is the world about to be removed from the config?voidsetCancelled(boolean cancel)
-
-
-
Constructor Detail
-
MVWorldDeleteEvent
public MVWorldDeleteEvent(MultiverseWorld world, boolean removeFromConfig)
-
-
Method Detail
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()
- Specified by:
getHandlersin 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:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel)
- Specified by:
setCancelledin 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.
-
-