Class ArenaSaveBlocksStopEvent

java.lang.Object
org.bukkit.event.Event
de.marcely.bedwars.api.event.arena.ArenaSaveBlocksStopEvent
All Implemented Interfaces:
ArenaEvent

public class ArenaSaveBlocksStopEvent extends Event implements ArenaEvent
Gets called after the blocks of an arena have been saved/changed

This event gets called for both failures and successes.

  • Constructor Details

  • Method Details

    • getFile

      public File getFile()
      Returns the file where the blocks were saved

      The type of the file depends on the RegenerationType.

      Returns:
      The file where the blocks were saved
    • getDuration

      public Duration getDuration()
      Returns the time it took to save the blocks
      Returns:
      The duration of the save operation
    • getExecutor

      @Nullable public @Nullable CommandSenderWrapper 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

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()