mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Try fix agagin
Former-commit-id: 99dfffd0fe9bbe869e65dedcaf5c8f09f2c375d9 [formerly b609c60ac32b37073ba16af188fd12424f4c7f18] Former-commit-id: bd80926867905b86405cdd1af5bb70d90a18472c
This commit is contained in:
1 parent
9cf1fe22c8
commit
97c507b0cb
3 files changed
+13
-1
No files matched your search
@@ -19,6 +19,7 @@ import org.maxgamer.quickshop.Shop.DisplayItem;
|
||||
import org.maxgamer.quickshop.Shop.Info;
|
||||
import org.maxgamer.quickshop.Shop.Shop;
|
||||
import org.maxgamer.quickshop.Shop.ShopAction;
|
||||
import org.maxgamer.quickshop.Shop.ShopManager;
|
||||
import org.maxgamer.quickshop.Util.MsgUtil;
|
||||
import org.maxgamer.quickshop.Util.Util;
|
||||
|
||||
@@ -90,6 +91,7 @@ public class PlayerListener implements Listener {
|
||||
shop.onClick();
|
||||
// Text menu
|
||||
MsgUtil.sendShopInfo(p, shop);
|
||||
shop.setSignText();
|
||||
if (shop.isSelling()) {
|
||||
p.sendMessage(MsgUtil.getMessage("how-many-buy"));
|
||||
} else {
|
||||
@@ -351,5 +353,14 @@ public class PlayerListener implements Listener {
|
||||
Util.inventoryCheck(e.getInventory());
|
||||
|
||||
}
|
||||
@EventHandler
|
||||
public void invCloseEvent(InventoryCloseEvent e){
|
||||
Location loc = e.getInventory().getLocation();
|
||||
Shop shop = new ShopManager(QuickShop.instance).getShop(loc);
|
||||
if(shop!=null) {
|
||||
shop.setSignText();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -406,6 +406,7 @@ public class QuickShop extends JavaPlugin {
|
||||
if (loc.getWorld() != null && loc.getChunk().isLoaded()) {
|
||||
step = "Loading shop to memory >> Chunk loaded, Loaded to memory";
|
||||
shop.onLoad();
|
||||
shop.setSignText();
|
||||
} else {
|
||||
step = "Loading shop to memory >> Chunk not loaded, Skipping";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user