From a7549ba32bf81bb72960a5bf5aa0687933325e84 Mon Sep 17 00:00:00 2001 From: Leandro Date: Sat, 3 Jul 2021 14:07:55 -0300 Subject: [PATCH] Use the existing headdb.search permission to hide the icon in the UI. --- src/main/java/tsp/headdb/inventory/InventoryUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/tsp/headdb/inventory/InventoryUtils.java b/src/main/java/tsp/headdb/inventory/InventoryUtils.java index e39bd35..a226a92 100644 --- a/src/main/java/tsp/headdb/inventory/InventoryUtils.java +++ b/src/main/java/tsp/headdb/inventory/InventoryUtils.java @@ -172,7 +172,7 @@ public class InventoryUtils { ); } - if (player.hasPermission("headdb.searchui")) { + if (player.hasPermission("headdb.search")) { inventory.setItem(40, buildButton( XMaterial.DARK_OAK_SIGN.parseItem(), "&9Search",