diff --git a/src/main/java/pw/yumc/MenuProtect/utils/MarkUtil.java b/src/main/java/pw/yumc/MenuProtect/utils/MarkUtil.java index 6e06c41..e2e5b85 100644 --- a/src/main/java/pw/yumc/MenuProtect/utils/MarkUtil.java +++ b/src/main/java/pw/yumc/MenuProtect/utils/MarkUtil.java @@ -17,7 +17,7 @@ public class MarkUtil { public static Map> cmds = new HashMap<>(); public static void handlerItemClick(final Player p, final ItemStack is) { - if (hasMark(is)) { + if (hasMark(is) && is.getItemMeta().hasLore()) { for (final String lore : is.getItemMeta().getLore()) { if (cmds.containsKey(lore)) { for (final String cmd : cmds.get(lore)) {