Fix runtimeChecker tool

Former-commit-id: 49d34fc07d2f2ce9f0d881b211d3cdf4b339b4b5
This commit is contained in:
Ghost_chu committed 2020-03-18 12:52:36 +08:00
1 parent 4c7c56f62c
commit 9bb6e46dbb
1 file changed
+12 -9
@@ -551,6 +551,17 @@ public class QuickShop extends JavaPlugin {
getCommand("qs").setTabCompleter(commandManager);
getLogger().info("Quickshop " + getFork());
/* Check the running envs is support or not. */
try {
runtimeCheck(this);
} catch (RuntimeException e) {
bootError = new BootError(e.getMessage());
//noinspection ConstantConditions
getCommand("qs").setTabCompleter(this); //Disable tab completer
return;
}
getLogger().info("Reading the configuration...");
/* Process the config */
saveDefaultConfig();
@@ -606,15 +617,7 @@ public class QuickShop extends JavaPlugin {
MsgUtil.loadEnchi18n();
MsgUtil.loadPotioni18n();
this.previewProtectionLore = MsgUtil.getMessageOfflinePlayer("quickshop-gui-preview", null);
/* Check the running envs is support or not. */
try {
runtimeCheck(this);
} catch (RuntimeException e) {
bootError = new BootError(e.getMessage());
//noinspection ConstantConditions
getCommand("qs").setTabCompleter(this); //Disable tab completer
return;
}
/* Load 3rd party supports */
load3rdParty();