/// <summary> /// The constructor defines the basics of chat command, and security access. /// </summary> /// <param name="security">Allowed level of access to this command</param> /// <param name="flag"></param> /// <param name="name">Name that appears in the help listing</param> /// <param name="commands">Command text</param> protected ChatCommand(uint security, ChatCommandFlag flag, string name, string[] commands) { Name = name; Security = security; Commands = commands; Flag = flag; }
/// <summary> /// The constructor defines the basics of chat command, and security access. /// </summary> /// <param name="security">Allowed level of access to this command</param> /// <param name="flag"></param> /// <param name="name">Name that appears in the help listing</param> /// <param name="commands">Command text</param> protected ChatCommand(uint security, ChatCommandFlag flag, string name, string[] commands) { Name = name; Security = security; Commands = commands; Flag = flag; }
/// <summary> /// Determins if the command has the given flag. /// </summary> /// <param name="flag"></param> /// <returns>Returns true if the command has the given flag.</returns> public bool HasFlag(ChatCommandFlag flag) { return Flag.HasFlag(flag); }
/// <summary> /// Determins if the command has the given flag. /// </summary> /// <param name="flag"></param> /// <returns>Returns true if the command has the given flag.</returns> public bool HasFlag(ChatCommandFlag flag) { return(Flag.HasFlag(flag)); }