From dd010333a7fd9d923886dbbe20bafc0ba4c0aee6 Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Sun, 4 Mar 2018 18:24:09 -0800 Subject: [PATCH] Hide flags in warp gui too --- src/main/java/com/massivecraft/factions/util/WarpGUI.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/util/WarpGUI.java b/src/main/java/com/massivecraft/factions/util/WarpGUI.java index 08c9a352..3871f130 100644 --- a/src/main/java/com/massivecraft/factions/util/WarpGUI.java +++ b/src/main/java/com/massivecraft/factions/util/WarpGUI.java @@ -15,6 +15,7 @@ import org.bukkit.entity.Player; import org.bukkit.event.inventory.ClickType; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryHolder; +import org.bukkit.inventory.ItemFlag; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; @@ -236,6 +237,8 @@ public class WarpGUI implements InventoryHolder, FactionGUI { ItemMeta itemMeta = itemStack.getItemMeta(); + itemMeta.addItemFlags(ItemFlag.HIDE_ENCHANTS, ItemFlag.HIDE_ATTRIBUTES); + itemMeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', dummySection.getString("name", " "))); List lore = new ArrayList<>();