mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-18 01:50:33 +00:00
Add minimum-pay-amount setting to limit how little you can /pay someone.
Add 'minimumPayAmount' translatable message. Create NumberUtil#displayCurrencyExactly(BigDecimal, IEssentials).
This commit is contained in:
parent
fc8ee7f25f
commit
0a876c33a7
6 changed files with 19 additions and 0 deletions
Essentials/src/com/earth2me/essentials/utils
|
@ -37,6 +37,10 @@ public class NumberUtil {
|
|||
return tl("currency", ess.getSettings().getCurrencySymbol(), formatAsCurrency(value));
|
||||
}
|
||||
|
||||
public static String displayCurrencyExactly(final BigDecimal value, final IEssentials ess) {
|
||||
return tl("currency", ess.getSettings().getCurrencySymbol(), value.toPlainString());
|
||||
}
|
||||
|
||||
public static boolean isInt(final String sInt) {
|
||||
try {
|
||||
Integer.parseInt(sInt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue