publicclassSimpleStartGameTimerextendsSimpleGameTimer {publicSimpleStartGameTimer(Game game,int minPlayers,int time) { super(game, minPlayers, time); } @OverridepublicvoidonCancel() {game.sendMessage("starting cancelled");//the method calls when the countdown was stopped } @OverridepublicvoidonEnd() {//the method calls when the countdown was endedgame.getPlayingUsers().forEach(userGame -> {Player player =userGame.toPlayer();player.getInventory().clear();player.teleport(game.getArena().getLocationByName("spawn")); });game.setState(newPlayingGameState()); } @OverridepublicvoidonStart() {//the method calls when the countdown was started }}