public CommandAttribute(string commandName, bool isAdmin, TickDelay tickLength, int minLevel, params object[] args) { CommandName = commandName; IsAdmin = isAdmin; TickLength = tickLength; Parameters = args; MinimumLevel = minLevel; }
private void setTimeout(SpammedCommand command, TickDelay tickLength) { //Server.Current.Log(string.Format("command timeout: {0}", command.Context.CommandName)); var t = new System.Timers.Timer() { Interval = (long)tickLength, AutoReset = false, }; t.Elapsed += (sender, e) => nextCommand(sender, e, command); t.Start(); }
private void setTimeout(TickDelay tickDelay) { //Server.Current.Log("generic timeout"); var t = new System.Timers.Timer() { Interval = (long)tickDelay, AutoReset = false, }; t.Elapsed += makeReady; t.Start(); // fire this in tickDelay ms }
public PlayerCommand(TickDelay tickLength) { TickLength = TickLength; }
public CommandAttribute(string commandName, bool isAdmin, TickDelay tickLength, params object[] args) : this(commandName, isAdmin, tickLength, 1, args) { }