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
|
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
|
*
|
2015-11-02 20:47:14 +01:00
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
|
*/
|
|
|
|
|
|
2015-04-26 21:09:25 +02:00
|
|
|
|
package ellpeck.actuallyadditions.update;
|
|
|
|
|
|
2015-09-29 17:08:47 +02:00
|
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigBoolValues;
|
2015-04-26 21:09:25 +02:00
|
|
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
|
|
|
|
|
|
|
|
|
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-10-28 18:28:30 +01:00
|
|
|
|
public static final String CHANGELOG_LINK = "https://github.com/Ellpeck/ActuallyAdditions/blob/master/update/changelog.md";
|
|
|
|
|
public static boolean checkFailed;
|
|
|
|
|
public static boolean needsUpdateNotify;
|
|
|
|
|
public static String updateVersion;
|
2015-07-10 20:04:07 +02:00
|
|
|
|
|
2015-04-26 21:09:25 +02:00
|
|
|
|
public void init(){
|
2015-09-29 17:08:47 +02:00
|
|
|
|
if(ConfigBoolValues.DO_UPDATE_CHECK.isEnabled()){
|
|
|
|
|
ModUtil.LOGGER.info("Initializing Update Checker...");
|
|
|
|
|
new ThreadUpdateChecker();
|
|
|
|
|
}
|
2015-04-26 21:09:25 +02:00
|
|
|
|
}
|
|
|
|
|
}
|