Exemple #1
0
        public override bool Check(CommandString command)
        {
            if (base.Check(command))
            {
                return(true);
            }

            if (command.State != State)
            {
                return(false);
            }

            if (command.CommandName != null)
            {
                return(false);
            }

            return((command.PreviosCommand == Name || Alias.Any(a => a == command.PreviosCommand)) && command.ContainData);
        }
 internal bool Contains(string name)
 {
     return(Alias.Any(s => s.Equals(name, StringComparison.OrdinalIgnoreCase)));
 }