/// <summary> /// Handler for when the tournament times out and has to end. /// </summary> public void OnEndTimeOut() { Ended = true; var winnerTeam = GetWinner(); if (winnerTeam != null) { winnerTeam.Reward(Reward); PlayerCollection.BroadcastFormattedMessage("TOURNAMENT_END_WINNER_TEAM", Name, winnerTeam.Name); } else { PlayerCollection.BroadcastFormattedMessage("TOURNAMENT_END", Name); } BlackTeam.Leave(true); WhiteTeam.Leave(true); BlueTeam.Leave(true); RedTeam.Leave(true); ClearScore(); }