Finished up setbanner command and colored the meta and display name for the serialized banners

This commit is contained in:
ProSavage
2018-05-11 18:11:02 -05:00
parent 243c2d19bd
commit 3ce14d2085
3 changed files with 48 additions and 46 deletions

View File

@@ -46,8 +46,8 @@ public class CmdBanner extends FCommand {
ItemStack warBanner = fme.getFaction().getBanner();
if (warBanner != null) {
ItemMeta warmeta = warBanner.getItemMeta();
warmeta.setDisplayName(P.p.getConfig().getString("fbanners.Item.Name"));
warmeta.setLore(P.p.getConfig().getStringList("fbanners.Item.Lore"));
warmeta.setDisplayName(P.p.color(P.p.getConfig().getString("fbanners.Item.Name")));
warmeta.setLore(P.p.colorList(P.p.getConfig().getStringList("fbanners.Item.Lore")));
warBanner.setItemMeta(warmeta);
me.getInventory().addItem(warBanner);