From d870528b7f1f91b7be6f253bf200d3f44c1d4208 Mon Sep 17 00:00:00 2001 From: j502647092 Date: Mon, 5 Oct 2015 02:27:09 +0800 Subject: [PATCH] move reloadConfig to reload... Signed-off-by: j502647092 --- src/main/java/org/maxgamer/QuickShop/Command/QS.java | 1 + src/main/java/org/maxgamer/QuickShop/QuickShop.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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);