1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-16 21:21:20 +01:00

Merge pull request #105 from Rukes/master

Job color in GUI
placeholder into signs
This commit is contained in:
Zrips 2017-06-27 16:39:17 +03:00 committed by GitHub
commit 2127059f14
2 changed files with 7 additions and 3 deletions

View File

@ -147,7 +147,7 @@ public class GuiManager {
ItemStack GuiItem = job.getGuiItem();
ItemMeta meta = GuiItem.getItemMeta();
meta.setDisplayName(job.getName());
meta.setDisplayName(job.getChatColor()+job.getName());
meta.setLore(Lore);
GuiItem.setItemMeta(meta);
@ -221,7 +221,7 @@ public class GuiManager {
if (z == info.size() - 1)
continue;
ItemMeta meta = GuiItem.getItemMeta();
meta.setDisplayName(job.getName());
meta.setDisplayName(job.getChatColor()+job.getName());
meta.setLore(Lore);
GuiItem.setItemMeta(meta);
//GuiInv.setItem(i, GuiItem);
@ -236,7 +236,7 @@ public class GuiManager {
y++;
}
ItemMeta meta = GuiItem.getItemMeta();
meta.setDisplayName(job.getName());
meta.setDisplayName(job.getChatColor()+job.getName());
meta.setLore(Lore);
GuiItem.setItemMeta(meta);
//GuiInv.setItem(i, GuiItem);

View File

@ -158,6 +158,7 @@ public class SignUtil {
line1 = line1.replace("[number]", String.valueOf(one.GetNumber() + number + 1));
line1 = line1.replace("[player]", PlayerName);
line1 = line1.replace("[level]", String.valueOf(PlayerList.get(0).getLevel()));
line1 = line1.replace("[job]", JobName);
sign.setLine(0, line1);
@ -165,6 +166,7 @@ public class SignUtil {
line1 = line1.replace("[number]", String.valueOf(one.GetNumber() + number + 1));
line1 = line1.replace("[player]", PlayerName);
line1 = line1.replace("[level]", String.valueOf(PlayerList.get(0).getLevel()));
line1 = line1.replace("[job]", JobName);
sign.setLine(1, line1);
@ -172,6 +174,7 @@ public class SignUtil {
line1 = line1.replace("[number]", String.valueOf(one.GetNumber() + number + 1));
line1 = line1.replace("[player]", PlayerName);
line1 = line1.replace("[level]", String.valueOf(PlayerList.get(0).getLevel()));
line1 = line1.replace("[job]", JobName);
sign.setLine(2, line1);
@ -179,6 +182,7 @@ public class SignUtil {
line1 = line1.replace("[number]", String.valueOf(one.GetNumber() + number + 1));
line1 = line1.replace("[player]", PlayerName);
line1 = line1.replace("[level]", String.valueOf(PlayerList.get(0).getLevel()));
line1 = line1.replace("[job]", JobName);
sign.setLine(3, line1);
sign.update();