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 CommandSenderWrapper
Returns the command sender that executed the save operationgetFile()
Returns the file where the blocks were savedstatic HandlerList
boolean
Returns whether the save operation was successfulMethods 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
-
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.
null
if nobody directly executed it
-
isSuccess
public boolean isSuccess()Returns whether the save operation was successful- Returns:
true
if the save operation was successful,false
otherwise
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-