@EventHandler public void invalidFingerprint(FMLFingerprintViolationEvent event) // NO_UCD (unused code) { // Check to see if fingerprint matches what we expect. if (ModMetadata.FINGERPRINT.equals( ModMetadata.FINGERPRINT )) { LogWrapper.warning( "The copy of " + ModMetadata.NAME + " that you are running passesd all verification and fingerprint checks. It has not been modified from original." ); } else { LogWrapper.severe( "The copy of " + ModMetadata.NAME + " that you are running has been modified from the original, and unpredictable things may happen. Please consider re-downloading the original version of the mod." ); } }
@FingerprintWarning public void fingerprintWarning(FMLFingerprintViolationEvent event) { Proxies.log.warning("Fingerprint of the mod jar is invalid. The jar file was tampered with. This is not good."); //FMLInterModComms.sendMessage("Forestry", "securityViolation", "Fingerprint of jar file did not match."); FMLInterModComms.sendMessage("Railcraft", "securityViolation", "Fingerprint of jar file did not match."); FMLInterModComms.sendMessage("Thaumcraft", "securityViolation", "Fingerprint of jar file did not match."); FMLInterModComms.sendMessage("IC2", "securityViolation", "Fingerprint of jar file did not match."); }
@FingerprintWarning public void onFingerprintWarning(FMLFingerprintViolationEvent event) { //System.out.println("MiscPeripherals has been tampered with!"); }
/** * A public method to handle if your mod's signature is invalidated, perhaps to provide some failing message.<p/> * From the {@link EventHandler} javadoc for methods using the {@link FMLFingerprintViolationEvent} parameter: * <pre> * FMLFingerprintViolationEvent: * Sent just before FMLPreInitializationEvent if something is wrong with your mod signature * </pre> * @param event A Forge event handler for "fingerprint" errata. */ @EventHandler abstract public void fingerprintviolation(FMLFingerprintViolationEvent event);