private static void OnEnd(EventArgs args) { Game.Say("/all Good game guys, well played."); if (Menu.Item("Quit.Activated").GetValue<bool>()) { Utility.DelayAction.Add(3000, () => Game.Quit()); } }