private RemoveTE CreateParallelTimer(int timeoutDelay, Dictionary <string, object> args) { RemoveTE timedEvent = new RemoveTE(timeoutDelay); timedEvent.Args = args; timedEvent.OnFire += Callback; return(timedEvent); }
private void Callback(RemoveTE e) { e.Kill(); Dictionary <string, object> Data = e.Args; Fougerite.Player PlayerF = (Fougerite.Player)Data["Player"]; if (PlayerF.IsOnline) { DataStore.GetInstance().Remove("RemoveTool", PlayerF.SteamID); PlayerF.MessageFrom(Name, "RemoveTool is now [color #fc0313] Disable!"); } }