示例#1
0
 public void RegisterCommand(string command, string usage, string description)
 {
     if (String.IsNullOrEmpty(command))
         return;
     PluginCommand c = new PluginCommand();
     c._description = description;
     c._command = command;
     c._usage = usage;
     RegisterCommand(c);
 }
示例#2
0
        public void RegisterCommand(string command, string usage, string description)
        {
            if (String.IsNullOrEmpty(command))
            {
                return;
            }
            PluginCommand c = new PluginCommand();

            c._description = description;
            c._command     = command;
            c._usage       = usage;
            RegisterCommand(c);
        }
示例#3
0
 public void RegisterCommand(PluginCommand command)
 {
     Commands.Add(Commands.Count, command);
 }
示例#4
0
 public void RegisterCommand(PluginCommand command)
 {
     Commands.Add(Commands.Count, command);
 }