mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Bug fixes
Former-commit-id: 001d9da8bd563062ca8f0832287e5a8c45e6d019 [formerly 07cea1a11e9b10d98afdab93e0515b3902304749] Former-commit-id: ef8434c8f3e6b63f8fa93aaa5c1b1a6660ae4228
This commit is contained in:
1 parent
1ed23f59b2
commit
95e50d6400
2 files changed
+13
-10
No files matched your search
@@ -20,7 +20,6 @@ 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;
|
||||
|
||||
@@ -371,14 +370,5 @@ 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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -713,6 +713,8 @@ public class QuickShop extends JavaPlugin {
|
||||
getConfig().set("disabled-metrics", false);
|
||||
getConfig().set("config-version", 2);
|
||||
selectedVersion = 2;
|
||||
saveConfig();
|
||||
reloadConfig();
|
||||
}
|
||||
if (selectedVersion == 2) {
|
||||
getConfig().set("protect.minecart", true);
|
||||
@@ -723,27 +725,38 @@ public class QuickShop extends JavaPlugin {
|
||||
getConfig().set("protect.hopper", true);
|
||||
getConfig().set("config-version", 3);
|
||||
selectedVersion = 3;
|
||||
saveConfig();
|
||||
reloadConfig();
|
||||
}
|
||||
if (selectedVersion == 3) {
|
||||
getConfig().set("shop.alternate-currency-symbol", '$');
|
||||
getConfig().set("config-version", 4);
|
||||
selectedVersion = 4;
|
||||
saveConfig();
|
||||
reloadConfig();
|
||||
}
|
||||
if (selectedVersion == 4) {
|
||||
getConfig().set("updater", true);
|
||||
getConfig().set("config-version", 5);
|
||||
selectedVersion = 5;
|
||||
saveConfig();
|
||||
reloadConfig();
|
||||
}
|
||||
if (selectedVersion == 5) {
|
||||
getConfig().set("shop.display-item-use-name", true);
|
||||
getConfig().set("config-version", 6);
|
||||
selectedVersion = 6;
|
||||
saveConfig();
|
||||
reloadConfig();
|
||||
}
|
||||
if (selectedVersion == 7) {
|
||||
getConfig().set("shop.sneak-to-control", false);
|
||||
getConfig().set("config-version", 7);
|
||||
selectedVersion = 7;
|
||||
saveConfig();
|
||||
reloadConfig();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/** Reloads QuickShops config */
|
||||
|
||||
Reference in new issue
Block a user