Add missing message variables.

This commit is contained in:
BONNe1704 2018-12-17 15:10:42 +02:00
parent 3dd23addc4
commit cd503d7f71

View File

@ -228,7 +228,7 @@ public class TryToComplete {
{ {
if (!vaultHook.get().has(this.user, this.challenge.getReqMoney())) if (!vaultHook.get().has(this.user, this.challenge.getReqMoney()))
{ {
this.user.sendMessage("challenges.not-enough-money"); this.user.sendMessage("challenges.not-enough-money", "[money]", Integer.toString(this.challenge.getReqMoney()));
return new ChallengeResult(); return new ChallengeResult();
} }
} }
@ -236,7 +236,7 @@ public class TryToComplete {
// Check exp // Check exp
if (this.user.getPlayer().getTotalExperience() < this.challenge.getReqExp()) if (this.user.getPlayer().getTotalExperience() < this.challenge.getReqExp())
{ {
this.user.sendMessage("challenges.not-enough-exp"); this.user.sendMessage("challenges.not-enough-exp", "[xp]", Integer.toString(this.challenge.getReqExp()));
return new ChallengeResult(); return new ChallengeResult();
} }