Class EditWorldUnloadEvent
java.lang.Object
org.bukkit.event.Event
de.erethon.dungeonsxl.api.event.world.InstanceWorldEvent
de.erethon.dungeonsxl.api.event.world.InstanceWorldUnloadEvent
de.erethon.dungeonsxl.api.event.world.EditWorldUnloadEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
Fired when an edit world is unloaded.
- Author:
- Daniel Saukel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Field Summary
Fields inherited from class de.erethon.dungeonsxl.api.event.world.InstanceWorldEvent
instance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
boolean
getSave()
Returns if the world is saved.boolean
void
setCancelled(boolean cancelled)
void
setSave(boolean save)
Sets if the world shall be saved.toString()
Methods inherited from class de.erethon.dungeonsxl.api.event.world.InstanceWorldEvent
getBukkitWorld, getInstance
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
EditWorldUnloadEvent
-
-
Method Details
-
getSave
public boolean getSave()Returns if the world is saved.- Returns:
- if the world is saved
-
setSave
public void setSave(boolean save)Sets if the world shall be saved.- Parameters:
save
- if the world shall be saved
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Overrides:
getHandlers
in classInstanceWorldUnloadEvent
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
- Overrides:
isCancelled
in classInstanceWorldUnloadEvent
-
setCancelled
public void setCancelled(boolean cancelled)- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
- Overrides:
setCancelled
in classInstanceWorldUnloadEvent
-
toString
- Overrides:
toString
in classInstanceWorldUnloadEvent
-