From 54a35929e6bf9f117f3cffc8729228d205d5fa0d Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Sun, 18 Mar 2018 20:13:05 -0700 Subject: [PATCH] Hide attributes in relation as well --- src/main/java/com/massivecraft/factions/struct/Relation.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/struct/Relation.java b/src/main/java/com/massivecraft/factions/struct/Relation.java index b37081d1..9ef7722a 100644 --- a/src/main/java/com/massivecraft/factions/struct/Relation.java +++ b/src/main/java/com/massivecraft/factions/struct/Relation.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; @@ -215,6 +216,7 @@ public enum Relation implements Permissable { itemMeta.setDisplayName(displayName); itemMeta.setLore(lore); + itemMeta.addItemFlags(ItemFlag.HIDE_ATTRIBUTES); item.setItemMeta(itemMeta); return item;