Hide attributes in relation as well

This commit is contained in:
Trent Hensler 2018-03-18 20:13:05 -07:00
parent c88e04a806
commit 54a35929e6

View File

@ -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;