@Mod.EventHandler public void onFingerPrintViolation(FMLFingerprintViolationEvent event) { // Not running in a dev environment if (event.isDirectory() == false) { logger.warn("*********************************************************************************************"); logger.warn("***** WARNING *****"); logger.warn("***** *****"); logger.warn("***** The signature of the mod file '{}' does not match the expected fingerprint! *****", event.getSource().getName()); logger.warn("***** This might mean that the mod file has been tampered with! *****"); logger.warn("***** If you did not download the mod {} directly from Curse/CurseForge, *****", Reference.MOD_NAME); logger.warn("***** or using one of the well known launchers, and you did not *****"); logger.warn("***** modify the mod file at all yourself, then it's possible, *****"); logger.warn("***** that it may contain malware or other unwanted things! *****"); logger.warn("*********************************************************************************************"); } }
@EventHandler public void onFingerprintViolation(FMLFingerprintViolationEvent event) { // https://tutorials.darkhax.net/tutorials/jar_signing/ String source = (event.getSource() == null) ? "" : event.getSource().getName() + " "; String msg = "Invalid fingerprint detected! The file " + source + "may have been tampered with. This version will NOT be supported by the author!"; if (logger == null) { System.out.println(msg); } else { ModCyclic.logger.error(msg); } }
@EventHandler public void onFingerprintViolation(FMLFingerprintViolationEvent event) { LOG.warn("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!"); }
@EventHandler public void onFingerprintViolation (FMLFingerprintViolationEvent event) { LOG.warn("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!"); }
@EventHandler public void onFingerprintViolation(@Nonnull final FMLFingerprintViolationEvent event) { log().warn("Invalid fingerprint detected!"); }
@EventHandler public void onFingerprintViolation (FMLFingerprintViolationEvent event) { LOG.error("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!"); }
@EventHandler public void onFingerprintViolation (FMLFingerprintViolationEvent event) { LOGGER.warn("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!"); }
@EventHandler public void onFingerprintViolation (FMLFingerprintViolationEvent event) { Constants.LOG.error("Invalid fingerprint detected! The file " + event.getSource().getName() + " may have been tampered with. This version will NOT be supported by the author!"); }
@EventHandler public void onFingerprintViolation(FMLFingerprintViolationEvent event) { LogHelper.log(Level.WARN, "Invalid fingerprint detected! The version of the mod is most likely modified and an inofficial release."); LogHelper.log(Level.WARN, "Use with caution."); }
@Mod.EventHandler public void fingerprintViolation(FMLFingerprintViolationEvent fingerprintViolationEvent){ CLLLogger.logWarning("This jar file of Combustible Lemon Launcher failed the fingerprint validation!"); }