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:
parent
ae41ac0e76
commit
a3bd113ae0
|
@ -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());
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue