Removed curency formatting and moved symbol into language file

This causes large numbers to be longer being formatted/pretty printed but allows people to use their own currency
This commit is contained in:
Christian Koop 2022-06-16 12:45:26 +02:00
parent ae41ac0e76
commit a3bd113ae0
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ public class Head {
if (!free) {
String fcost = Settings.ECONOMY_PLUGIN.getString().equalsIgnoreCase("item")
? cost + " " + Settings.ITEM_TOKEN_TYPE.getString()
: EconomyManager.formatEconomy(cost);
: /* EconomyManager.formatEconomy(cost) */ String.valueOf(cost); // FIXME: EconomyManager#formatEconomy etc only work in some languages (. vs ,) and only for the currency symbol $
lore.add(plugin.getLocale().getMessage("general.head.cost")
.processPlaceholder("cost", fcost).getMessage());
}

View File

@ -20,7 +20,7 @@ general:
head:
staffpicked: '&8Staff Favorite'
id: '&8ID: &7%id%'
cost: '&8Cost: &7%cost%'
cost: '&8Cost: &7$%cost%'
gui:
heads:
refine: '&9Refine Search'