stat placeholders now use MythicLib configurated decimal separator

This commit is contained in:
Indyuce 2021-12-20 12:49:00 +01:00
parent d51d587e5a
commit 60d0065706

View File

@ -27,8 +27,8 @@ public class MMOItemsPlaceholders extends PlaceholderExpansion {
private final DecimalFormat oneDigit = new DecimalFormat("0.#"), twoDigits = new DecimalFormat("0.##"); private final DecimalFormat oneDigit = new DecimalFormat("0.#"), twoDigits = new DecimalFormat("0.##");
public MMOItemsPlaceholders() { public MMOItemsPlaceholders() {
oneDigit.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance()); oneDigit.setDecimalFormatSymbols(MythicLib.plugin.getMMOConfig().formatSymbols);
twoDigits.setDecimalFormatSymbols(DecimalFormatSymbols.getInstance()); twoDigits.setDecimalFormatSymbols(MythicLib.plugin.getMMOConfig().formatSymbols);
} }
@Override @Override