From e948f56fd246eaa8a903f6b741a273bc4da046bb Mon Sep 17 00:00:00 2001 From: ProSavage Date: Fri, 11 May 2018 18:13:02 -0500 Subject: [PATCH] warbanner item stack could be set higher than 1, fixed. --- src/main/java/com/massivecraft/factions/cmd/CmdBanner.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdBanner.java b/src/main/java/com/massivecraft/factions/cmd/CmdBanner.java index 25e4a61b..8b3737f1 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdBanner.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdBanner.java @@ -49,12 +49,14 @@ public class CmdBanner extends FCommand { 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); + } else { warBanner = P.p.createItem(Material.BANNER, 1, (short) 1, P.p.getConfig().getString("fbanners.Item.Name"), P.p.getConfig().getStringList("fbanners.Item.Lore")); } fme.msg(TL.COMMAND_BANNER_SUCCESS); + warBanner.setAmount(1); + me.getInventory().addItem(warBanner); }