Fix runtime error

This commit is contained in:
Ghost_chu committed 2021-05-19 16:41:03 +08:00
1 parent a91d0239e9
commit a7a5d2715e
1 file changed
+1 -12
@@ -163,15 +163,7 @@ public class EnvironmentChecker {
@SneakyThrows
@EnvCheckEntry(name = "Signature Verify", priority = 0, stage = {EnvCheckEntry.Stage.ON_LOAD, EnvCheckEntry.Stage.ON_ENABLE})
public ResultContainer securityVerify() {
if ("true".equalsIgnoreCase(System.getProperty("org.maxgamer.quickshop.EnvironmentChecker.disableRuntimeSignatureVerify"))) {
plugin.getLogger().warning("Signature Verify has been disabled. Please check if it not excepted.");
plugin.getLogger().warning("Signature verify is only way to allow QuickShop to self-check if virus infected QuickShop.");
plugin.getLogger().warning("If you still want QuickShop to check itself, please remove [-Dorg.maxgamer.quickshop.EnvironmentChecker.disableRuntimeSignatureVerify=true] from startup flag.");
plugin.getLogger().warning("Server will continue loading in 10 seconds.");
Thread.sleep(10000);
return new ResultContainer(CheckResult.WARNING, "Check skipped using property args.");
}
public ResultContainer securtyVerify() {
JarVerifyTool tool = new JarVerifyTool();
try {
ClassLoader loader = this.getClass().getClassLoader();
@@ -222,9 +214,6 @@ public class EnvironmentChecker {
@SneakyThrows
@EnvCheckEntry(name = "Java Runtime Environment Version Test", priority = 1, stage = EnvCheckEntry.Stage.ON_ENABLE)
public ResultContainer jrevTest() {
if ("true".equalsIgnoreCase(System.getProperty("org.maxgamer.quickshop.EnvironmentChecker.disableRuntimeJavaBuildVerify"))) {
return new ResultContainer(CheckResult.WARNING, "Check skipped using property args.");
}
if (isOutdatedJvm()) {
String jvmWarning = "\n" +
"============================================================\n" +