public TimedEvent Timer1(int timeoutDelay, Dictionary <string, object> args) { TimedEvent timedEvent = new TimedEvent(timeoutDelay); timedEvent.Args = args; timedEvent.OnFire += CallBack; return(timedEvent); }
public void CallBack(TimedEvent e) { e.Kill(); if (EnableAnnounce) { Server.GetServer().BroadcastFrom(Name + " " + Version, AnnounceMessage); Timer1(AnnounceTimeMins * 60000, null).Start(); } }