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();
|
ItemStack warBanner = fme.getFaction().getBanner();
|
||||||
if (warBanner != null) {
|
if (warBanner != null) {
|
||||||
ItemMeta warmeta = warBanner.getItemMeta();
|
ItemMeta warmeta = warBanner.getItemMeta();
|
||||||
warmeta.setDisplayName(P.p.getConfig().getString("fbanners.Item.Name"));
|
warmeta.setDisplayName(P.p.color(P.p.getConfig().getString("fbanners.Item.Name")));
|
||||||
warmeta.setLore(P.p.getConfig().getStringList("fbanners.Item.Lore"));
|
warmeta.setLore(P.p.colorList(P.p.getConfig().getStringList("fbanners.Item.Lore")));
|
||||||
warBanner.setItemMeta(warmeta);
|
warBanner.setItemMeta(warmeta);
|
||||||
me.getInventory().addItem(warBanner);
|
me.getInventory().addItem(warBanner);
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ public class FCmdRoot extends FCommand {
|
|||||||
public CmdLowPower cmdLowPower = new CmdLowPower();
|
public CmdLowPower cmdLowPower = new CmdLowPower();
|
||||||
public CmdTntFill cmdTntFill = new CmdTntFill();
|
public CmdTntFill cmdTntFill = new CmdTntFill();
|
||||||
public CmdChest cmdChest = new CmdChest();
|
public CmdChest cmdChest = new CmdChest();
|
||||||
|
public CmdSetBanner cmdSetBanner = new CmdSetBanner();
|
||||||
|
|
||||||
|
|
||||||
public FCmdRoot() {
|
public FCmdRoot() {
|
||||||
@ -210,6 +210,8 @@ public class FCmdRoot extends FCommand {
|
|||||||
this.addSubCommand(this.cmdLowPower);
|
this.addSubCommand(this.cmdLowPower);
|
||||||
this.addSubCommand(this.cmdTntFill);
|
this.addSubCommand(this.cmdTntFill);
|
||||||
this.addSubCommand(this.cmdChest);
|
this.addSubCommand(this.cmdChest);
|
||||||
|
this.addSubCommand(this.cmdSetBanner);
|
||||||
|
|
||||||
|
|
||||||
if (Bukkit.getServer().getPluginManager().getPlugin("CoreProtect") != null){
|
if (Bukkit.getServer().getPluginManager().getPlugin("CoreProtect") != null){
|
||||||
P.p.log("Found CoreProtect, enabling Inspect");
|
P.p.log("Found CoreProtect, enabling Inspect");
|
||||||
|
Loading…
Reference in New Issue
Block a user