pulled some more user facing strings into templates

This commit is contained in:
Sheldan
2020-05-14 00:49:57 +02:00
parent 40731157f7
commit 4c826676d0
15 changed files with 46 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ public class ShowEmote extends AbstractConditionableCommand {
List<Object> parameters = commandContext.getParameters().getParameters();
Object emoteParameter = parameters.get(0);
if(!(emoteParameter instanceof Emote)) {
return CommandResult.fromError("No custom emote found.");
return CommandResult.fromError(templateService.renderTemplate("no_custom_emote_found", new Object()));
}
Emote emote = (Emote) emoteParameter;
ShowEmoteLog emoteLog = (ShowEmoteLog) ContextConverter.fromCommandContext(commandContext, ShowEmoteLog.class);