Skip to content

Commit

Permalink
Add alt format method.
Browse files Browse the repository at this point in the history
  • Loading branch information
creatorfromhell committed Jun 12, 2024
1 parent 9f70379 commit 41028be
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/net/milkbowl/vault2/economy/Economy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 41028be

Please sign in to comment.