Class CommandMessageTemplates
java.lang.Object
tech.guilhermekaua.spigotboot.commands.message.CommandMessageTemplates
Interpolates
{placeholder} tokens in command message templates.-
Method Summary
-
Method Details
-
interpolate
Replaces every{name}token intemplatewith the string form of the matching value. Tokens with no matching value are left verbatim.- Parameters:
template- the template, may benullplaceholders- the placeholder values, may benull- Returns:
- the interpolated text, or an empty string when
templateisnull
-