Skip to content

Commit 360de1c

Browse files
committed
Force stop while validate failed
1 parent 9ca3d5f commit 360de1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/maxgamer/quickshop/util/envcheck/EnvironmentChecker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,14 @@ public ResultContainer securityVerify() {
200200
plugin.getLogger().warning("CRC: " + jarEntry.getCrc());
201201
plugin.getLogger().warning(JsonUtil.getGson().toJson(jarEntry));
202202
});
203-
plugin.getLogger().severe("QuickShop detected that the jar has been modified! This is usually caused by the file being corrupted or virus infected.");
203+
plugin.getLogger().severe("QuickShop detected that the jar has been moCdified! This is usually caused by the file being corrupted or virus infected.");
204204
plugin.getLogger().severe("To prevent severe server failure, QuickShop has been disabled.");
205205
plugin.getLogger().severe("For further information, Please join our support Discord server: https://discord.com/invite/bfefw2E.");
206206
return new ResultContainer(CheckResult.STOP_WORKING, "Security risk detected, QuickShop jar has been modified.");
207207
}
208-
} catch (IOException ioException) {
208+
} catch (Exception ioException) {
209209
plugin.getLogger().log(Level.WARNING, "ALERT: QuickShop cannot validate itself. This may be caused by you having deleted QuickShop's jar while the server is running.", ioException);
210-
return new ResultContainer(CheckResult.WARNING, "Failed to validate digital signature! Security may be compromised!");
210+
return new ResultContainer(CheckResult.STOP_WORKING, "Failed to validate digital signature! Security may be compromised!");
211211
} finally {
212212
if (jarFile != null) {
213213
try {

0 commit comments

Comments
 (0)