mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Fix runtimeChecker tool
Former-commit-id: 49d34fc07d2f2ce9f0d881b211d3cdf4b339b4b5
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user