ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/update/UpdateChecker.java

32 lines
1.1 KiB
Java
Raw Normal View History

2015-08-29 14:33:25 +02:00
/*
* This file ("UpdateChecker.java") is part of the Actually Additions Mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-01-03 16:05:51 +01:00
* http://ellpeck.de/actaddlicense/
2015-08-29 14:33:25 +02:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2016-01-03 16:05:51 +01:00
* © 2016 Ellpeck
2015-08-29 14:33:25 +02:00
*/
2015-12-30 22:02:15 +01:00
package de.ellpeck.actuallyadditions.update;
2015-04-26 21:09:25 +02:00
2015-12-30 22:02:15 +01:00
import de.ellpeck.actuallyadditions.config.values.ConfigBoolValues;
import de.ellpeck.actuallyadditions.util.ModUtil;
import de.ellpeck.actuallyadditions.util.Util;
2015-04-26 21:09:25 +02:00
public class UpdateChecker{
2015-10-03 10:16:18 +02:00
public static final String DOWNLOAD_LINK = "http://minecraft.curseforge.com/mc-mods/228404-actually-additions/files";
2015-12-30 21:39:16 +01:00
public static final String CHANGELOG_LINK = "http://ellpeck.de/actaddchangelog/";
public static boolean checkFailed;
public static boolean needsUpdateNotify;
public static String updateVersion;
public static void init(){
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled() && !Util.isDevVersion()){
2015-09-29 17:08:47 +02:00
ModUtil.LOGGER.info("Initializing Update Checker...");
new ThreadUpdateChecker();
}
2015-04-26 21:09:25 +02:00
}
}