mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-01 06:53:37 +01:00
Add missing message variables.
This commit is contained in:
parent
3dd23addc4
commit
cd503d7f71
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user