Add missing message variables.

This commit is contained in:
BONNe1704 2018-12-17 15:10:42 +02:00
parent 3dd23addc4
commit cd503d7f71
1 changed files with 2 additions and 2 deletions

View File

@ -228,7 +228,7 @@ public class TryToComplete {
{
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();
}
}
@ -236,7 +236,7 @@ public class TryToComplete {
// Check exp
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();
}