Class CommandMessageRenderer

java.lang.Object
tech.guilhermekaua.spigotboot.commands.message.CommandMessageRenderer

public class CommandMessageRenderer extends Object
Renders a CommandMessageException into the final message string: the active CommandMessageSource template if it supplies one, otherwise the key's default template, then placeholder interpolation.
  • Constructor Details

  • Method Details

    • render

      public String render(CommandExecutionContext context, CommandMessageException exception)
      Parameters:
      context - the current execution context; must not be null
      exception - the keyed failure to render; must not be null
      Returns:
      the message to send to the sender