diff --git a/src/main/java/org/maxgamer/QuickShop/Command/QS.java b/src/main/java/org/maxgamer/QuickShop/Command/QS.java index 525e2bd..ab635b3 100644 --- a/src/main/java/org/maxgamer/QuickShop/Command/QS.java +++ b/src/main/java/org/maxgamer/QuickShop/Command/QS.java @@ -384,6 +384,7 @@ public class QS implements CommandExecutor { sender.sendMessage(MsgUtil.p("command.reloading")); Bukkit.getPluginManager().disablePlugin(plugin); Bukkit.getPluginManager().enablePlugin(plugin); + plugin.reloadConfig(); return; } sender.sendMessage(MsgUtil.p("no-permission")); diff --git a/src/main/java/org/maxgamer/QuickShop/QuickShop.java b/src/main/java/org/maxgamer/QuickShop/QuickShop.java index a4373ac..5c0fa4c 100644 --- a/src/main/java/org/maxgamer/QuickShop/QuickShop.java +++ b/src/main/java/org/maxgamer/QuickShop/QuickShop.java @@ -205,7 +205,6 @@ public class QuickShop extends JavaPlugin { e.printStackTrace(); } this.warnings.clear(); - this.reloadConfig(); } @Override @@ -222,7 +221,6 @@ public class QuickShop extends JavaPlugin { if (loadEcon() == false) { return; } - // Initialize Util Util.initialize(); ItemConfig.load(this);