feat: 调整自动更新系统检查间隔

Signed-off-by: 502647092 <admin@yumc.pw>
merge/1/MERGE
502647092 2016-08-10 15:13:06 +08:00
parent 1c38ed34cb
commit 89b8139617
1 changed files with 26 additions and 2 deletions

View File

@ -24,13 +24,37 @@ import pw.yumc.YumCore.bukkit.P;
*/
public class SubscribeTask implements Runnable {
public static boolean navite = false;
/**
*
*/
public static boolean debug = false;
/**
*
*/
private final static int interval = 25;
/**
* POM
*/
private final static String url = "https://coding.net/u/502647092/p/%s/git/raw/%s/pom.xml";
/**
*
*/
private final static String direct = "http://ci.yumc.pw/job/%1$s/lastSuccessfulBuild/artifact/target/%1$s.jar";
/**
* POM
*/
private final static String pom = "http://ci.yumc.pw/job/%s/lastSuccessfulBuild/artifact/pom.xml";
/**
*
*/
private final static String maven = "http://ci.yumc.pw/plugin/repository/everything/%1$s/%2$s/%3$s-%2$s.jar";
/**
*
*/
private final String branch;
/**
* Maven
*/
private final boolean isMaven;
/**
@ -56,7 +80,7 @@ public class SubscribeTask implements Runnable {
public SubscribeTask(final String branch, final boolean isMaven) {
this.isMaven = isMaven;
this.branch = branch;
Bukkit.getScheduler().runTaskTimerAsynchronously(P.instance, this, 0, 24000);
Bukkit.getScheduler().runTaskTimerAsynchronously(P.instance, this, 0, interval * 1200);
}
/**