Class ArenaChangeStateEvent

java.lang.Object
org.bukkit.event.Event
me.hsgamer.minigamecore.bukkit.event.ArenaChangeStateEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class ArenaChangeStateEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
The event called when an arena changed its state. If you modified the next state in this event, you should cancel the event with setCancelled(boolean).
  • Constructor Details

    • ArenaChangeStateEvent

      public ArenaChangeStateEvent(BukkitArena arena, GameState oldState, GameState newState)
      Construct the event
      Parameters:
      arena - the arena
      oldState - the old game state
      newState - the new game state
  • Method Details

    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Get the handler list
      Returns:
      the handler list
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

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

      public Arena getArena()
      Get the arena
      Returns:
      the arena
    • getOldState

      public GameState getOldState()
      Get the old game state
      Returns:
      the old game state
    • getNewState

      public GameState getNewState()
      Get the new game state
      Returns:
      the new game state