diff --git a/pom.xml b/pom.xml index c73157352..5a7acce76 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.maxgamer QuickShop - Reremake 1.3.0.6_beta2 + Reremake 1.3.0.6_beta3 diff --git a/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java b/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java index 227e99ee5..17f4fc52a 100644 --- a/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java +++ b/src/main/java/org/maxgamer/quickshop/Listeners/PlayerListener.java @@ -208,20 +208,27 @@ public class PlayerListener implements Listener { } public void onInventoryClose(InventoryCloseEvent e) { + Util.debugLog("Inventory closed."); try { Inventory inventory = e.getInventory(); if (inventory == null) { + Util.debugLog("Inventory: null"); return; } + Util.debugLog("Inventory: "+inventory.toString()); Location location = inventory.getLocation(); if (location == null) { + Util.debugLog("Location: null"); return; } - + Util.debugLog("Location: "+location.toString()); Shop shop = plugin.getShopManager().getShop(location); if (shop == null) { + Util.debugLog("Shop: null"); return; } + Util.debugLog("Shop: "+shop.toString()); + Util.debugLog("Updateing shops.."); shop.setSignText(); shop.update(); } catch (Throwable t) {