Class MiniGameInstanceCreateEvent

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

public class MiniGameInstanceCreateEvent extends MiniGameInstanceEvent implements org.bukkit.event.Cancellable
Called before the instance is created
  • Constructor Details

    • MiniGameInstanceCreateEvent

      public MiniGameInstanceCreateEvent(MiniGame minigame)
  • Method Details

    • 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
    • getMiniGame

      public MiniGameAccessor getMiniGame()
      Get template minigame, not created instance minigame
      Overrides:
      getMiniGame in class MiniGameEvent
      Returns:
      MiniGameAccessor
    • instances

      public List<MiniGameAccessor> instances()
      Get the same instance games before this event processes
      Overrides:
      instances in class MiniGameInstanceEvent
      Returns:
      The ssme minigame instances