public void CallBack(TimedEvent e) { e.Kill(); Server.GetServer().BroadcastFrom(Name, green + "All the SHOPS have been filled, next fill will be in " + white + MinutesToRefillShop + "mins."); Timer1(MinutesToRefillShop * 60000, null).Start(); ReFillShops(); }
public TimedEvent Timer1(int timeoutDelay, Dictionary <string, object> args) { TimedEvent timedEvent = new TimedEvent(timeoutDelay); timedEvent.Args = args; timedEvent.OnFire += CallBack; return(timedEvent); }