2015-08-29 14:33:25 +02:00
|
|
|
/*
|
2016-05-16 22:52:27 +02:00
|
|
|
* This file ("UpdateChecker.java") is part of the Actually Additions mod for Minecraft.
|
2015-08-29 14:33:25 +02:00
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
2016-05-16 22:52:27 +02:00
|
|
|
* http://ellpeck.de/actaddlicense
|
2015-08-29 14:33:25 +02:00
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2016-05-16 22:52:27 +02:00
|
|
|
* © 2015-2016 Ellpeck Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
package de.ellpeck.actuallyadditions.mod.update;
|
2015-04-26 21:09:25 +02:00
|
|
|
|
2016-01-05 04:47:35 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.config.values.ConfigBoolValues;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.util.Util;
|
2015-04-26 21:09:25 +02:00
|
|
|
|
|
|
|
public class UpdateChecker{
|
|
|
|
|
2016-02-03 18:16:24 +01:00
|
|
|
public static final String DOWNLOAD_LINK = "http://ellpeck.de/actadddownload";
|
2016-05-16 22:52:27 +02:00
|
|
|
public static final String CHANGELOG_LINK = "http://ellpeck.de/actaddchangelog";
|
2015-10-28 18:28:30 +01:00
|
|
|
public static boolean checkFailed;
|
|
|
|
public static boolean needsUpdateNotify;
|
2016-01-10 20:59:13 +01:00
|
|
|
public static int updateVersionInt;
|
|
|
|
public static String updateVersionString;
|
2015-07-10 20:04:07 +02:00
|
|
|
|
2015-11-02 21:38:49 +01:00
|
|
|
public static void init(){
|
2015-12-13 23:01:56 +01:00
|
|
|
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
|
|
|
}
|
2016-01-10 20:59:13 +01:00
|
|
|
}
|