public OnCommandEvent(Command command, string[] args, string complete) { Command = command; Args = args; Complete = complete; }
public void RemoveCommand(Command command) { Command outcommand; Commands.TryGetValue("!" + command.CommandName, out outcommand); if (outcommand == null) { Commands.Remove("!" + command.CommandName); } }
public void AddCommand(Command command) { Command outcommand; Commands.TryGetValue("!" + command.CommandName, out outcommand); if (outcommand == null) { Commands.Add("!" + command.CommandName, command); } }
protected void RegisterCommand(Command command) { SpiffCore.Instance.AddCommand(command); }