Package cloud.commandframework.captions
Interface CaptionVariableReplacementHandler
-
- All Known Implementing Classes:
SimpleCaptionVariableReplacementHandler
public interface CaptionVariableReplacementHandler
Utility that replaces variables in captions
-
-
Method Summary
Modifier and Type Method Description @NonNull java.lang.String
replaceVariables(@NonNull java.lang.String string, @NonNull CaptionVariable... variables)
Replace the variables in a message and return the result
-
-
-
Method Detail
-
replaceVariables
@NonNull java.lang.String replaceVariables(@NonNull java.lang.String string, @NonNull CaptionVariable... variables)
Replace the variables in a message and return the result- Parameters:
string
- Message to replace variables invariables
- Variables- Returns:
- Transformed message
-
-