From 0cf673b630aa64dff679c7d9136eb5cc49308bba Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Thu, 31 Oct 2024 12:04:35 -0400 Subject: [PATCH] don't run if no key is found --- .../badbones69/crazyauctions/api/guis/types/ExpiredMenu.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java index 6ea7a80..97f9367 100644 --- a/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java +++ b/paper/src/main/java/com/badbones69/crazyauctions/api/guis/types/ExpiredMenu.java @@ -216,6 +216,10 @@ public class ExpiredMenu extends Holder { } } + if (!container.has(Keys.auction_store_id.getNamespacedKey())) { // do not run, if there is no key. + return; + } + if (Methods.isInvFull(player)) { // run this here obviously as well player.sendMessage(Messages.INVENTORY_FULL.getMessage(player));