From 043fd64d96ffed2331e954d13fa6ec0ca0698853 Mon Sep 17 00:00:00 2001 From: Martin Sulikowski Date: Sun, 29 Dec 2024 22:11:42 +0100 Subject: [PATCH] GH-51 See only two decimal places in placeholder. (#51) --- .../bridge/placeholderapi/PlaceholderEconomyExpansion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eternaleconomy-core/src/main/java/com/eternalcode/economy/bridge/placeholderapi/PlaceholderEconomyExpansion.java b/eternaleconomy-core/src/main/java/com/eternalcode/economy/bridge/placeholderapi/PlaceholderEconomyExpansion.java index 20a5dd1..31eac73 100644 --- a/eternaleconomy-core/src/main/java/com/eternalcode/economy/bridge/placeholderapi/PlaceholderEconomyExpansion.java +++ b/eternaleconomy-core/src/main/java/com/eternalcode/economy/bridge/placeholderapi/PlaceholderEconomyExpansion.java @@ -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());