Fixes missing error translation for not meeting statistics challenge value.

This commit is contained in:
BONNe 2022-11-05 04:09:43 +02:00
parent c933caebe0
commit 0475c798e1
2 changed files with 2 additions and 0 deletions

View File

@ -1428,6 +1428,7 @@ public class TryToComplete
{
Utils.sendMessage(this.user, this.user.getTranslation("challenges.errors.requirement-not-met",
TextVariables.NUMBER, String.valueOf(requirements.getAmount()),
"[statistic]", Utils.prettifyObject(requirements.getStatistic(), this.user),
"[value]", String.valueOf(currentValue)));
}
else

View File

@ -1203,6 +1203,7 @@ challenges:
no-library-entries: "&c Cannot find any library entries. Nothing to show."
not-hooked: "&c Challenges Addon could not find any GameMode."
timeout: "&c This challenge requires to wait [timeout] between completions. You must wait [wait-time] till complete it again."
requirement-not-met: "&c This challenge requires [statistic] to have [number]. You have only [value]. "
# # Showcase for manual material translation
# materials:
# # Names should be lowercase.