This needs to be static...

This commit is contained in:
Brianna 2020-09-18 17:37:41 -05:00
parent b0ee0e2c7e
commit e3a71bfad6

View File

@ -62,7 +62,7 @@ public class EconomyManager {
* @param amt amount to display
* @return a currency string as formatted by the economy plugin
*/
public String formatEconomy(double amt) {
public static String formatEconomy(double amt) {
DecimalFormat formatter = new DecimalFormat(amt == Math.ceil(amt) ? "#,###" : "#,###.00");
return currencySymbol + formatter.format(amt);
}