Example #1
0
        public ChatCommand Register(string command)
        {
            if (String.IsNullOrEmpty(command))
                return null;

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

            return Register(cc);
        }
Example #2
0
        public ChatCommand Register(ChatCommand command)
        {
            Commands.Add(Commands.Count, command);

            return command;
        }