Class GameEventStartEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class GameEventStartEvent extends CancellableStealABlockEvent
Fired when a server-wide Game Event is about to start.
  • Constructor Details

    • GameEventStartEvent

      public GameEventStartEvent(@NotNull @NotNull net.kyori.adventure.key.Key eventKey, int durationSeconds)
  • Method Details

    • getEventKey

      @NotNull public @NotNull net.kyori.adventure.key.Key getEventKey()
    • getDurationSeconds

      public int getDurationSeconds()
    • setDurationSeconds

      public void setDurationSeconds(int durationSeconds)
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()