No more stupid

Former-commit-id: da86a813fb1b175642aa1a0811606b2ad02c6a25 [formerly 38454fa78ad00774d324c3e0bbcb6638e13eca7f]
Former-commit-id: 2ace12a3bbb88e59fa351088f4e7174cea704dbf
This commit is contained in:
Ghost_chu committed 2019-08-13 16:31:23 +08:00
1 parent 63c48dd53c
commit 0f25b473cb
2 files changed
+10 -2

No files matched your search

@@ -289,7 +289,7 @@ private int displayItemCheckTicks;
getLogger().info("Let's start loading the plugin");
/* Check the running envs is support or not. */
try {
runtimeCheck();
runtimeCheck(this);
} catch (RuntimeException e) {
bootError = new BootError(e.getMessage());
return;
@@ -400,7 +400,12 @@ private int displayItemCheckTicks;
*
* @throws RuntimeException The error message, use this to create a BootError.
*/
private void runtimeCheck() throws RuntimeException {
private void runtimeCheck(QuickShop shop) throws RuntimeException {
if (!Util.isClassAvailable("org.apache.http.impl.client.HttpClients")) {
getLogger()
.severe("FATAL: Broken QuickShop build, please download from SpigotMC not Github if you didn't know should download which one.");
throw new RuntimeException("Broken QuickShop build, please download from SpigotMC not Github if you didn't know should download which one.");
}
try {
getServer().spigot();
} catch (Throwable e) {