Skip to content

Commit 043fd64

Browse files
authored
GH-51 See only two decimal places in placeholder. (#51)
1 parent 3f814dc commit 043fd64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eternaleconomy-core/src/main/java/com/eternalcode/economy/bridge/placeholderapi/PlaceholderEconomyExpansion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public PlaceholderEconomyExpansion(
5454

5555
switch (params) {
5656
case "balance" -> {
57-
return account.balance().toString();
57+
return String.format("%.2f", account.balance());
5858
}
5959
case "balance_formatted" -> {
6060
return this.decimalFormatter.format(account.balance());

0 commit comments

Comments
 (0)