From 9d63279191e46d74c407b8ceaccc6613faa12501 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Mon, 29 Oct 2018 21:08:28 +0800 Subject: [PATCH] Fix Safe Boot bug Former-commit-id: f9825a5f9e4c9958987c8d6e3c822be61d66fa21 [formerly 53473d74e3acfb5f488994ee0930998c312afe22] Former-commit-id: 90cea3547213052579b34df93878a01bcaa39a0a --- .../org/maxgamer/quickshop/QuickShop.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/org/maxgamer/quickshop/QuickShop.java b/src/main/java/org/maxgamer/quickshop/QuickShop.java index f34776035..9183274af 100644 --- a/src/main/java/org/maxgamer/quickshop/QuickShop.java +++ b/src/main/java/org/maxgamer/quickshop/QuickShop.java @@ -128,16 +128,6 @@ public class QuickShop extends JavaPlugin { @SuppressWarnings("resource") public void onEnable() { instance = this; - if(Util.isDevEdition()) { - getLogger().severe("WARNING: You are running QSRR unstable test version"); - getLogger().severe("WARNING: Keep backup and DO NOT running on production environment!"); - getLogger().severe("WARNING: Test version may destory anything!"); - getLogger().severe("WARNING: QSRR won't start after you confirm, nothing will changes before you turn on dev allowed."); - if(!getConfig().getBoolean("dev-mode")){ - getLogger().severe("WARNING: Set dev-mode: true in config.yml to allow qs load on dev mode(Maybe need add this line by your self)."); - System.exit(0); - } - } getLogger().info("Quickshop Reremake by Ghost_chu(Minecraft SunnySide Server Community)"); getLogger().info("THIS VERSION ONLY SUPPORT BUKKIT API 1.13-1.13.x VERSION!"); getLogger().info("Author:Ghost_chu"); @@ -149,6 +139,16 @@ public class QuickShop extends JavaPlugin { reloadConfig(); // Reloads messages.yml too, aswell as config.yml and // others. getConfig().options().copyDefaults(true); // Load defaults. + if(Util.isDevEdition()) { + getLogger().severe("WARNING: You are running QSRR on dev-mode"); + getLogger().severe("WARNING: Keep backup and DO NOT running on production environment!"); + getLogger().severe("WARNING: Test version may destory anything!"); + getLogger().severe("WARNING: QSRR won't start without you confirm, nothing will changes before you turn on dev allowed."); + if(!getConfig().getBoolean("dev-mode")){ + getLogger().severe("WARNING: Set dev-mode: true in config.yml to allow qs load on dev mode(Maybe need add this line by your self)."); + System.exit(0); + } + } if (loadEcon() == false) return;