/// <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">The accessibility of the command.</param> /// <param name="name">Name that appears in the help listing.</param> /// <param name="commands">Command text.</param> protected ChatCommand(byte security, ChatCommandAccessibility flag, string name, string[] commands) { Security = security; Flag = flag; Name = name; Commands = commands; }
/// <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(ChatCommandAccessibility flag) { return(Flag.HasFlag(flag)); }