Interface ICommandTextFormatter
Formats command usage text. Generates strings like "/cmd <arg1> <arg2>" for display. Can be customized for localization.
public interface ICommandTextFormatter
Methods
FormatCommandUsage(string, string?, CommandParameterInfo[], bool)
Formats a command usage text with parameters.
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]".