Skip to content

Commit

Permalink
GH-51 See only two decimal places in placeholder. (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
vLuckyyy authored Dec 29, 2024
1 parent 3f814dc commit 043fd64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public PlaceholderEconomyExpansion(

switch (params) {
case "balance" -> {
return account.balance().toString();
return String.format("%.2f", account.balance());
}
case "balance_formatted" -> {
return this.decimalFormatter.format(account.balance());
Expand Down

0 comments on commit 043fd64

Please sign in to comment.