Java 类net.minecraftforge.fml.common.event.FMLFingerprintViolationEvent 实例源码

项目:placementpreview    文件:PlacementPreview.java   
@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("*********************************************************************************************");
    }
}
项目:justenoughdimensions    文件:JustEnoughDimensions.java   
@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("*********************************************************************************************");
    }
}
项目:paintedbiomes    文件:PaintedBiomes.java   
@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("*********************************************************************************************");
    }
}
项目:multishot    文件:Multishot.java   
@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("*********************************************************************************************");
    }
}
项目:enderutilities    文件:EnderUtilities.java   
@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("*********************************************************************************************");
    }
}
项目:Cyclic    文件:ModCyclic.java   
@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);
  }
}
项目:DimensionStages    文件:DimensionStages.java   
@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!");
}
项目:WailaStages    文件:WailaStages.java   
@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!");
}
项目:Game-Stages    文件:GameStages.java   
@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!");
}
项目:DynamicSurroundings    文件:DSurround.java   
@EventHandler
public void onFingerprintViolation(@Nonnull final FMLFingerprintViolationEvent event) {
    log().warn("Invalid fingerprint detected!");
}
项目:Tesla    文件:Tesla.java   
@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!");
}
项目:Dark-Utilities    文件:DarkUtils.java   
@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!");
}
项目:AdditionalBanners    文件:AdditionalBanners.java   
@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!");
}
项目:Bookshelf    文件:Bookshelf.java   
@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!");
}
项目:BetterChests    文件:BetterChests.java   
@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.");

}
项目:Combustible-Lemon-Launcher    文件:CombustibleLemonLauncher.java   
@Mod.EventHandler
public void fingerprintViolation(FMLFingerprintViolationEvent fingerprintViolationEvent){
    CLLLogger.logWarning("This jar file of Combustible Lemon Launcher failed the fingerprint validation!");
}