Class DefaultCommandTextFormatter
Default implementation of ICommandTextFormatter. Generates standard formatted command usage text.
public class DefaultCommandTextFormatter : ICommandTextFormatter
- Inheritance
-
DefaultCommandTextFormatter
- Implements
- Inherited Members
Constructors
DefaultCommandTextFormatter()
public DefaultCommandTextFormatter()
Methods
FormatCommandUsage(string, string?, CommandParameterInfo[], bool)
Formats a command usage text with parameters.
public string FormatCommandUsage(string commandName, string? group, CommandParameterInfo[] parameters, bool includeSlash = true)
Parameters
commandNamestringThe command name (without group prefix).
groupstringThe command group, if any (e.g., "admin money").
parametersCommandParameterInfo[]The parsed parameters of the command.
includeSlashboolWhether to include the leading slash (true for player commands, false for console).
Returns
- string
Formatted text like "/cmd <arg1> [arg2]".