private void BattleTimer_Elapsed(object sender, ElapsedEventArgs e) { CurrentUsers = 0; MatchRunning = false; Communication.SendServerChat(0, $"The match on server {Index + 1} has ended, and it is now ready to start a new match!"); }
private void JoinTimer_Elapsed(object sender, ElapsedEventArgs e) { Communication.SendServerChat(0, $"Battle has begun on server {Index + 1} and is now closed to new players. Good luck!"); MatchRunning = true; BattleTimer.Start(); }
public void Start() { Communication.SendNotification(0, $"A match is being started on server {Index + 1}! You can join the match in the next {Settings.Instance.JoinTime} minutes!", MyFontEnum.Blue, 10000); JoinTimer.Start(); }