From 7dbbf70006ce71de663b8ecd9e66e3feaea3b580 Mon Sep 17 00:00:00 2001
From: Ghost_chu <2908803755@qq.com>
Date: Thu, 22 Nov 2018 18:57:27 +0800
Subject: [PATCH] lol
Former-commit-id: 84ea48336c79969b5cf2d30318c01fe38873c81f [formerly 4dc2aeff000dc1e59cdd0582e928707fc9d7c6fb]
Former-commit-id: f704f7c130135a36f4d893c8e7e2477ec0c1350a
---
pom.xml | 2 +-
.../org/maxgamer/quickshop/Listeners/PlayerListener.java | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
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) {