Skip to content

Commit

Permalink
Add missing message variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Dec 17, 2018
1 parent 3dd23ad commit cd503d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ private ChallengeResult checkIfCanCompleteChallenge() {
{
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();
}
}

// 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();
}

Expand Down

0 comments on commit cd503d7

Please sign in to comment.