mirror of
https://github.com/MilkBowl/Vault.git
synced 2025-02-05 23:11:40 +01:00
fix BOSE7 impl to use builtin currency formatter.
This commit is contained in:
parent
2551f28e48
commit
88ec6335d2
@ -152,11 +152,7 @@ public class Economy_BOSE7 implements Economy {
|
||||
|
||||
@Override
|
||||
public String format(double amount) {
|
||||
if (amount == 1) {
|
||||
return String.format("%.0f %s", amount, currencyNameSingular());
|
||||
} else {
|
||||
return String.format("%.2f %s", amount, currencyNamePlural());
|
||||
}
|
||||
return economy.getMoneyFormatted(amount);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user