mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2024-11-25 12:25:20 +01:00
v1.1.2 Update || Small change
This update makes a change to the Categories item in the /ah Changes: - Changed the %Category% name in the Categories item to the acual custom name to allow translation.
This commit is contained in:
parent
ac23825caf
commit
92420f2a8a
@ -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.
|
||||
|
@ -100,9 +100,10 @@ public class GUI implements Listener{
|
||||
String name = config.getString("Settings.GUISettings.OtherSettings."+o+".Name");
|
||||
List<String> lore = new ArrayList<String>();
|
||||
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{
|
||||
|
Loading…
Reference in New Issue
Block a user