예제 #1
0
        public ConsoleCommand Register(ConsoleCommand command)
        {
            Commands.Add(Commands.Count, command);

            return command;
        }
예제 #2
0
        public ConsoleCommand Register(string command)
        {
            if (String.IsNullOrEmpty(command))
                return null;

            ConsoleCommand cc = new ConsoleCommand(command);
            cc.plugin = plugin;

            return Register(cc);
        }