fCraft.CommandDescriptor.PrintHelpSection C# (CSharp) Method

PrintHelpSection() public method

Prints a command HelpSection syntax to the given player. If that fails, it will print the usage instead
public PrintHelpSection ( Player player, string sectionName ) : void
player Player
sectionName string
return void
        public void PrintHelpSection( Player player, string sectionName )
        {
            string sectionHelp;
            if ( HelpSections != null && HelpSections.TryGetValue( sectionName.ToLower(), out sectionHelp ) ) {
                player.MessagePrefixed( "&S    ", sectionHelp );
            } else {
                PrintUsage( player ); //if sectionName was incorrect
            }
        }