- remove debug message
- make placeholder %rankup_rank_money_<RANK>% use proper money formatting
This commit is contained in:
okx-code
2018-08-29 19:44:16 +01:00
parent b28842b43e
commit a748321d89
4 changed files with 3 additions and 4 deletions
@@ -47,7 +47,7 @@ public class Placeholders extends PlaceholderExpansion {
return simpleFormat.format(orElse(rankups.getRank(parts[2]).getRequirement(parts[3]), Requirement::getValueDouble, 0));
} else if(params.startsWith("rank_money_")) {
String[] parts = params.split("_", 3);
return moneyFormat.format(rankups.getRank(parts[2]).getRequirement("money").getValueDouble());
return plugin.formatMoney(rankups.getRank(parts[2]).getRequirement("money").getValueDouble());
}
switch (params) {