From c88e04a80669be271bace04b9d9c3d7b9bce679d Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Sun, 18 Mar 2018 20:10:50 -0700 Subject: [PATCH] Hide attributes in role items --- src/main/java/com/massivecraft/factions/struct/Role.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/struct/Role.java b/src/main/java/com/massivecraft/factions/struct/Role.java index 00fc0078..4119beb0 100644 --- a/src/main/java/com/massivecraft/factions/struct/Role.java +++ b/src/main/java/com/massivecraft/factions/struct/Role.java @@ -7,6 +7,7 @@ import com.massivecraft.factions.zcore.util.TL; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.configuration.ConfigurationSection; +import org.bukkit.inventory.ItemFlag; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; @@ -126,6 +127,7 @@ public enum Role implements Permissable { itemMeta.setDisplayName(displayName); itemMeta.setLore(lore); + itemMeta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES); item.setItemMeta(itemMeta); return item;