Alright, I have a problem. I made a Timer, to start the PK Tournament. But it keeps doing it over and over for that one minute. I only want it to do it once in that one minute. Here is what I got.
Help will be appreciated.
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NewestCOServer.Features
{
class PKTourneyTimer
{
public static void PKTTimer()
{
if (DateTime.Now.Minute == 30)
{
if (NewestCOServer.Features.PKTournament.Stage == NewestCOServer.Features.PKTournamentStage.None)
{
NewestCOServer.Features.PKTournament.StartTournament();
}
}
}
}
}
Code:
try
{
Features.PKTourneyTimer.PKTTimer();
}
catch { }