You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logger.info("The latest version is " + latest.getVersion());
253
+
logger.info(latest.getVersionPage());
254
+
}
255
+
} else {
256
+
logger.info("Yay! You are running the latest version.");
257
+
}
258
+
}
259
+
});
230
260
}
231
261
232
262
publicvoidloadConfig() {
@@ -247,29 +277,4 @@ public void loadConfig() {
247
277
248
278
numberFormat = newNumberFormat(this);
249
279
}
250
-
251
-
publicvoidcheckForUpdates() {
252
-
GitHubReleaseAPIapi;
253
-
try {
254
-
api = newGitHubReleaseAPI("ToolStats", "hyperdefined");
255
-
} catch (IOExceptione) {
256
-
logger.warning("Unable to check updates!");
257
-
e.printStackTrace();
258
-
return;
259
-
}
260
-
GitHubReleasecurrent;
261
-
try {
262
-
current = api.getReleaseByTag(this.getPluginMeta().getVersion());
263
-
} catch (ReleaseNotFoundExceptione) {
264
-
logger.warning("You are running a version that does not exist on GitHub. If you are in a dev environment, you can ignore this. Otherwise, this is a bug!");
265
-
return;
266
-
}
267
-
GitHubReleaselatest = api.getLatestVersion();
268
-
intbuildsBehind = api.getBuildsBehind(current);
269
-
if (buildsBehind == 0) {
270
-
logger.info("You are running the latest version.");
271
-
} else {
272
-
logger.warning("A new version is available (" + latest.getTagVersion() + ")! You are running version " + current.getTagVersion() + ". You are " + buildsBehind + " version(s) behind.");
0 commit comments