From 41028bee0a1768bbec96420a6ceac2f125be2b27 Mon Sep 17 00:00:00 2001 From: Daniel V Date: Wed, 12 Jun 2024 14:13:03 -0400 Subject: [PATCH] Add alt format method. --- src/main/java/net/milkbowl/vault2/economy/Economy.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/net/milkbowl/vault2/economy/Economy.java b/src/main/java/net/milkbowl/vault2/economy/Economy.java index b76b467..6dbba51 100644 --- a/src/main/java/net/milkbowl/vault2/economy/Economy.java +++ b/src/main/java/net/milkbowl/vault2/economy/Economy.java @@ -77,6 +77,16 @@ public interface Economy { */ int fractionalDigits(); + /** + * Plugins use this method to format a given BigDecimal amount into a human-readable + * amount using your economy plugin's currency names/conventions. + * + * @param amount to format. + * + * @return Human-readable string describing amount, ie 5 Dollars or 5.55 Pounds. + */ + String format(BigDecimal amount); + /** * Plugins use this method to format a given BigDecimal amount into a human-readable * amount using your economy plugin's currency names/conventions.