Class GameStartEvent

java.lang.Object
org.bukkit.event.Event

public final class GameStartEvent extends GameEvent
Called after a Whack Me game enters active play.

The gameplay timer has been initialized, the boss bar is active, and the point-block handler has started before this event is dispatched. The player is already attached to the Game.

 @EventHandler
 public void onGameStart(GameStartEvent event) {
     event.getGame().getPlayer().sendMessage("Good luck!");
 }
 
API note: This event is informational and is not cancellable. To deny a player entry, listen to PlayerJoinAttemptEvent instead.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Field Summary

    Fields inherited from class GameEvent

    game
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a game start event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList

    Methods inherited from class GameEvent

    getArena, getGame, toString

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GameStartEvent

      public GameStartEvent(Game game)
      Creates a game start event.
      Parameters:
      game - game that entered active play
  • Method Details

    • getHandlers

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

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