diff --git a/src/main/java/org/maxgamer/quickshop/util/envcheck/EnvironmentChecker.java b/src/main/java/org/maxgamer/quickshop/util/envcheck/EnvironmentChecker.java index 353061b26..4a69a2d7d 100644 --- a/src/main/java/org/maxgamer/quickshop/util/envcheck/EnvironmentChecker.java +++ b/src/main/java/org/maxgamer/quickshop/util/envcheck/EnvironmentChecker.java @@ -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" +