Class GameStartEvent
java.lang.Object
org.bukkit.event.Event
dev.despical.whackme.api.event.WhackMeEvent
dev.despical.whackme.api.event.game.GameEvent
dev.despical.whackme.api.event.game.GameStartEvent
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerListMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
GameStartEvent
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:
getHandlersin classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()
-