From 554f83c84e006162a9f9bfd679881145aaf0447d Mon Sep 17 00:00:00 2001 From: Mark Date: Sat, 27 Jan 2018 13:15:03 +0800 Subject: [PATCH] Update GUI.java --- src/me/badbones69/crazyauctions/controlers/GUI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/badbones69/crazyauctions/controlers/GUI.java b/src/me/badbones69/crazyauctions/controlers/GUI.java index 509c31d..aae7f81 100644 --- a/src/me/badbones69/crazyauctions/controlers/GUI.java +++ b/src/me/badbones69/crazyauctions/controlers/GUI.java @@ -71,7 +71,7 @@ public class GUI implements Listener { }else { if(sell == ShopType.SELL) { for(String l : config.getStringList("Settings.GUISettings.SellingItemLore")) { - lore.add(l.replaceAll("%Price%", Methods.getPrice(i, false)).replaceAll("%price%", Methods.getPrice(i, false)).replaceAll("%Seller%", data.getString("Items." + i + ".Seller")).replaceAll("%seller%", data.getString("Items." + i + ".Seller"))); + lore.add(l.replaceAll("%Price%", String.format(Locale.ENGLISH, "%,d", Long.parseLong(Methods.getPrice(i, false)))).replaceAll("%price%", String.format(Locale.ENGLISH, "%,d", Long.parseLong(Methods.getPrice(i, false)))).replaceAll("%Seller%", data.getString("Items." + i + ".Seller")).replaceAll("%seller%", data.getString("Items." + i + ".Seller"))); } items.add(Methods.addLore(data.getItemStack("Items." + i + ".Item").clone(), lore)); ID.add(data.getInt("Items." + i + ".StoreID")); @@ -986,4 +986,4 @@ public class GUI implements Listener { } } -} \ No newline at end of file +}