Class ArenaSaveBlocksStopEvent
java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaSaveBlocksStopEvent
- All Implemented Interfaces:
ArenaEvent
Gets called after the blocks of an arena have been saved/changed
This event gets called for both failures and successes.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionArenaSaveBlocksStopEvent(Arena arena, File file, Duration duration, @Nullable CommandSenderWrapper executor, boolean success) -
Method Summary
Modifier and TypeMethodDescriptionReturns the time it took to save the blocks@Nullable CommandSenderWrapperReturns the command sender that executed the save operationgetFile()Returns the file where the blocks were savedstatic HandlerListbooleanReturns whether the save operation was successfulMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.marcely.bedwars.api.event.arena.ArenaEvent
getArena
-
Constructor Details
-
ArenaSaveBlocksStopEvent
public ArenaSaveBlocksStopEvent(Arena arena, File file, Duration duration, @Nullable @Nullable CommandSenderWrapper executor, boolean success)
-
-
Method Details
-
getFile
Returns the file where the blocks were savedThe type of the file depends on the
RegenerationType.- Returns:
- The file where the blocks were saved
-
getDuration
Returns the time it took to save the blocks- Returns:
- The duration of the save operation
-
getExecutor
Returns the command sender that executed the save operation- Returns:
- The command sender that executed the save operation.
nullif nobody directly executed it
-
isSuccess
public boolean isSuccess()Returns whether the save operation was successful- Returns:
trueif the save operation was successful,falseotherwise
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-