From a21057e6e22db70d2218f8978443f48842d81425 Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 30 Nov 2024 23:53:43 +0100 Subject: [PATCH] See only two decimal places in placeholder. --- .../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());