Class ArenaRegenerationStartEvent

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

public class ArenaRegenerationStartEvent extends Event implements ArenaEvent
Gets called when an arena starts to regenerate
  • Constructor Details

  • Method Details

    • getSender

      @Nullable public @Nullable CommandSender getSender()
      Returns the person who started the regeneration.

      Can be null when something else (or nobody on this server) started it

      Returns:
      The person who started it
    • getSenderWrapped

      @Nullable public @Nullable CommandSenderWrapper getSenderWrapped()
      Returns the person who started this regeneration.

      Can be null when something else started it.

      Returns:
      The person who started it
    • getResult

      Returns what actually should happen after this event.
      Returns:
      The result of this event
    • setResult

      public void setResult(ArenaRegenerationStartEvent.Result result)
      Set what actually should happen after this event.
      Parameters:
      result - The new result
    • getHandlers

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

      public static HandlerList getHandlerList()