Exemple #1
0
 public void RegisterCommand(PluginCommand command) => Commands.Add(Commands.Count, command);
Exemple #2
0
        public void RegisterCommand(string command, string usage, string description)
        {
            if (String.IsNullOrEmpty(command))
                return;

            PluginCommand cmd = new PluginCommand();
            cmd._description = description;
            cmd._command = command;
            cmd._usage = usage;

            RegisterCommand(cmd);
        }