From 0475c798e1d437699fff0d6397842e93c2fb7516 Mon Sep 17 00:00:00 2001 From: BONNe Date: Sat, 5 Nov 2022 04:09:43 +0200 Subject: [PATCH] Fixes missing error translation for not meeting statistics challenge value. --- src/main/java/world/bentobox/challenges/tasks/TryToComplete.java | 1 + src/main/resources/locales/en-US.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/world/bentobox/challenges/tasks/TryToComplete.java b/src/main/java/world/bentobox/challenges/tasks/TryToComplete.java index 6b8c161..ad534e5 100644 --- a/src/main/java/world/bentobox/challenges/tasks/TryToComplete.java +++ b/src/main/java/world/bentobox/challenges/tasks/TryToComplete.java @@ -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 diff --git a/src/main/resources/locales/en-US.yml b/src/main/resources/locales/en-US.yml index c935902..45d94e6 100755 --- a/src/main/resources/locales/en-US.yml +++ b/src/main/resources/locales/en-US.yml @@ -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.