Skip to content

GameEvent

GameEvent is the abstract base for events associated with one live Whack Me game session.


  • Package: dev.despical.whackme.api.event.game
  • Parent: WhackMeEvent

MethodReturn typeDescription
getGame()GameLive game associated with the event.
getArena()ArenaArena that owns the game.

Through Game, listeners can read the player/user, timer, state, point handler, scoreboard manager, boss bar manager, and arena.


  • GameStartEvent
  • GameEndEvent
  • GameStopEvent
  • GameStateChangeEvent
@EventHandler
public void onStart(GameStartEvent event) {
String arenaId = event.getArena().getId();
int duration = event.getGame().getTimer();
getLogger().info("Whack Me started in " + arenaId + " for " + duration + " seconds.");
}