diff --git a/plugin.yml b/plugin.yml index fd9cbc8..43751bc 100644 --- a/plugin.yml +++ b/plugin.yml @@ -2,7 +2,7 @@ name: CrazyAuctions author: BadBones69 main: me.badbones69.crazyauctions.Main website: https://www.spigotmc.org/resources/authors/kicjow.9719/ -version: 1.1.1 +version: 1.1.2 depend: [Vault] description: > A plugin to auction off items globally. diff --git a/src/me/BadBones69/CrazyAuctions/GUI.java b/src/me/BadBones69/CrazyAuctions/GUI.java index 66dee97..93e21b0 100644 --- a/src/me/BadBones69/CrazyAuctions/GUI.java +++ b/src/me/BadBones69/CrazyAuctions/GUI.java @@ -100,9 +100,10 @@ public class GUI implements Listener{ String name = config.getString("Settings.GUISettings.OtherSettings."+o+".Name"); List lore = new ArrayList(); int slot = config.getInt("Settings.GUISettings.OtherSettings."+o+".Slot"); + String cName = Api.color(config.getString("Settings.GUISettings.Category-Settings." + Cat.get(player).getName() + ".Name")); if(config.contains("Settings.GUISettings.OtherSettings."+o+".Lore")){ for(String l : config.getStringList("Settings.GUISettings.OtherSettings."+o+".Lore")){ - lore.add(l.replaceAll("%Category%", Cat.get(player).getName()).replaceAll("%category%", Cat.get(player).getName())); + lore.add(l.replaceAll("%Category%", cName).replaceAll("%category%", cName)); } inv.setItem(slot-1, Api.makeItem(id, 1, name, lore)); }else{