fCraft.CommandDescriptor.IsVisibleTo C# (CSharp) Method

IsVisibleTo() public method

Checks whether players of the given rank should see this command in /cmds list. Takes permissions and the hidden flag into account.
public IsVisibleTo ( [ rank ) : bool
rank [
return bool
        public bool IsVisibleTo( [NotNull] Rank rank )
        {
            if ( rank == null )
                throw new ArgumentNullException( "rank" );
            return !IsHidden && CanBeCalledBy( rank );
        }