From 9dd0e12878619eba7131bb95b5b2e76b96a4e76b Mon Sep 17 00:00:00 2001 From: tastybento Date: Thu, 16 Aug 2018 19:19:39 -0700 Subject: [PATCH] Fix island level reporting wrong number --- .../java/bentobox/addon/challenges/panel/TryToComplete.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/bentobox/addon/challenges/panel/TryToComplete.java b/src/main/java/bentobox/addon/challenges/panel/TryToComplete.java index 3b08382..f108dd7 100644 --- a/src/main/java/bentobox/addon/challenges/panel/TryToComplete.java +++ b/src/main/java/bentobox/addon/challenges/panel/TryToComplete.java @@ -149,7 +149,7 @@ public class TryToComplete { if (level >= challenge.getReqIslandlevel()) { return new ChallengeResult().setMeetsRequirements(); } else { - user.sendMessage("challenges.error.island-level", TextVariables.NUMBER, String.valueOf(level)); + user.sendMessage("challenges.error.island-level", TextVariables.NUMBER, String.valueOf(challenge.getReqIslandlevel())); return new ChallengeResult(); } }