From 7c6b1b7fcd74c35a038b93decabd03038e285387 Mon Sep 17 00:00:00 2001 From: sandtechnology Date: Wed, 11 Aug 2021 02:44:35 +0800 Subject: [PATCH] Revert "Fixed #1351, Try search the quickshop jar if old jar not found" This reverts commit 5b4530f8276ac77d33b255d303fff469c39e8d92. --- .../java/org/maxgamer/quickshop/QuickShop.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index ee3b1e16e..ae96956c5 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -676,22 +676,6 @@ public class QuickShop extends JavaPlugin { throw new IllegalStateException("Failed to reload QuickShop! Please consider restarting the server. (Plugin was updated)"); } } - // Maybe name changed, try search globally - if (!file.exists()) { - File pluginFolder = new File("plugins"); - if (pluginFolder.isDirectory()) { - //noinspection ConstantConditions - for (File listFile : pluginFolder.listFiles()) { - if (listFile.getName().endsWith(".jar")) { - if (getPluginLoader().loadPlugin(listFile).getName().equals(getDescription().getName())) { - file = listFile; - break; - } - } - } - } - } - if (!file.exists()) { throw new IllegalStateException("Failed to reload QuickShop! Please consider restarting the server. (Failed to find plugin jar)"); }