Skip to content

Commit

Permalink
Fix duplication of symbol string in placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Emibergo02 committed Jun 28, 2023
1 parent 3a8df9b commit 8b17d9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class Currency implements Economy {
private String currencySingular;
@Getter
private String currencyPlural;
@Getter
private final DecimalFormat decimalFormat;
@Getter
private double startingBalance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public String onRequest(OfflinePlayer player, String params) {

private String parseParams(double amount, List<String> splitted, Currency currency) {

String formattedNumber = currency.format(amount);
String formattedNumber = currency.getDecimalFormat().format(amount);

if (splitted.contains("short")) {
if (amount >= 1000000000000.0) {
Expand Down

0 comments on commit 8b17d9f

Please sign in to comment.