//Events: //Called when the game starts. GameStartEvent
(Game game
)
//Called when the game ends. GameEndEvent
(Game game
)
//Called when the game changes its state. (waiting, starting, playing, ending) GameStateChangeEvent
(Game game, GameState stageFrom, GameState stageTo
) //Example how to use: @EventHandler
publicvoid OnGameEndEvent
(GameEndEvent e
){ System.
out.
println("Game end event!"); }