Finished up setbanner command and colored the meta and display name for the serialized banners
This commit is contained in:
parent
243c2d19bd
commit
3ce14d2085
@ -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);
|
||||
|
||||
|
@ -99,7 +99,7 @@ public class FCmdRoot extends FCommand {
|
||||
public CmdLowPower cmdLowPower = new CmdLowPower();
|
||||
public CmdTntFill cmdTntFill = new CmdTntFill();
|
||||
public CmdChest cmdChest = new CmdChest();
|
||||
|
||||
public CmdSetBanner cmdSetBanner = new CmdSetBanner();
|
||||
|
||||
|
||||
public FCmdRoot() {
|
||||
@ -210,6 +210,8 @@ public class FCmdRoot extends FCommand {
|
||||
this.addSubCommand(this.cmdLowPower);
|
||||
this.addSubCommand(this.cmdTntFill);
|
||||
this.addSubCommand(this.cmdChest);
|
||||
this.addSubCommand(this.cmdSetBanner);
|
||||
|
||||
|
||||
if (Bukkit.getServer().getPluginManager().getPlugin("CoreProtect") != null){
|
||||
P.p.log("Found CoreProtect, enabling Inspect");
|
||||
|
Loading…
Reference in New Issue
Block a user