mirror of
https://github.com/Zrips/Jobs.git
synced 2024-12-01 15:03:36 +01:00
parent
5b4f43b1af
commit
32db8ef1ea
@ -214,7 +214,7 @@ public class NameTranslatorManager {
|
||||
String meta = one.split("-")[0];
|
||||
String MCName = one.split("-")[1];
|
||||
String Name = ItemFile.getConfig().getString("PotionNamesList." + one);
|
||||
ListOfColors.add(new NameList(id, meta, Name, MCName));
|
||||
ListOfPotionNames.add(new NameList(id, meta, Name, MCName));
|
||||
}
|
||||
if (ListOfPotionNames.size() > 0)
|
||||
Jobs.consoleMsg("&e[Jobs] Loaded " + ListOfPotionNames.size() + " custom potion names!");
|
||||
|
@ -69,7 +69,7 @@ public class JobItems {
|
||||
ItemMeta meta = item.getItemMeta();
|
||||
if (this.name != null)
|
||||
meta.setDisplayName(ChatColor.translateAlternateColorCodes('&', name));
|
||||
if (lore != null) {
|
||||
if (lore != null && !lore.isEmpty()) {
|
||||
List<String> TranslatedLore = new ArrayList<>();
|
||||
for (String oneLore : lore) {
|
||||
TranslatedLore.add(ChatColor.translateAlternateColorCodes('&', oneLore.replace("[player]", player.getName())));
|
||||
|
Loading…
Reference in New Issue
Block a user