mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 12:15:59 +01:00
Display local currency for fail-requirement if configured
This commit is contained in:
parent
c3708755cb
commit
328dec22af
@ -594,11 +594,12 @@ public class Quester {
|
|||||||
LinkedList<String> requirements = new LinkedList<String>();
|
LinkedList<String> requirements = new LinkedList<String>();
|
||||||
OfflinePlayer player = getPlayer();
|
OfflinePlayer player = getPlayer();
|
||||||
if (reqs.getMoney() > 0) {
|
if (reqs.getMoney() > 0) {
|
||||||
|
String currency = plugin.getDependencies().getCurrency(reqs.getMoney() == 1 ? false : true);
|
||||||
if (plugin.getDependencies().getVaultEconomy() != null
|
if (plugin.getDependencies().getVaultEconomy() != null
|
||||||
&& plugin.getDependencies().getVaultEconomy().getBalance(player) >= reqs.getMoney()) {
|
&& plugin.getDependencies().getVaultEconomy().getBalance(player) >= reqs.getMoney()) {
|
||||||
unfinishedRequirements.add(ChatColor.GREEN + "" + reqs.getMoney() + " " + Lang.get("money"));
|
unfinishedRequirements.add(ChatColor.GREEN + "" + reqs.getMoney() + " " + currency);
|
||||||
} else {
|
} else {
|
||||||
finishedRequirements.add(ChatColor.GRAY + "" + reqs.getMoney() + " " + Lang.get("money"));
|
finishedRequirements.add(ChatColor.GRAY + "" + reqs.getMoney() + " " + currency);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (reqs.getQuestPoints() > 0) {
|
if (reqs.getQuestPoints() > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user