Emibergo02/RedisEconomy

Placeholder problem when used %rediseco_bal_short_<curency>%

Arginou57 opened this issue · 3 comments

Hi, i have a problem with the placeholder %rediseco_bal_short_%
When i use it, i wanna have for example 15.6 k but i have written 15.6$k
I may thinks it will be cool to get an other placeholder without "currency name" include when we use the placeholder

Thanks for looking my message
Have a nice day

Mh. it might be the ending underscore?
Are you sure you didn't put "formatted" after "short"?
Please reach me on Discord (I am unnm3d)

It is cuz you call currency.format() which appends currency symbol

        if (splitted.contains("short")) {
            if (amount >= 1000000000000.0) {
                formattedNumber = currency.format(amount / 1000000000000.0) + langs.unitSymbols.trillion();
            }
        }

Fixed