mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-26 02:19:48 -05:00
lol
Former-commit-id: 84ea48336c79969b5cf2d30318c01fe38873c81f [formerly 4dc2aeff000dc1e59cdd0582e928707fc9d7c6fb] Former-commit-id: f704f7c130135a36f4d893c8e7e2477ec0c1350a
This commit is contained in:
1 parent
59b429e523
commit
7dbbf70006
2 files changed
+9
-2
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user