getChatFormatting

open fun getChatFormatting(context: CommandContext<CommandSourceStack>, argumentName: String): ChatFormatting(source)

Retrieves ChatFormatting from command context.

Return

The corresponding ChatFormatting object

Parameters

context

The command context containing the color argument

argumentName

The name of the argument containing the color name