Only check for updates each 30 minutes, fixes #6
This commit is contained in:
parent
b46f6fbb1f
commit
51202f1116
2 changed files with 15 additions and 17 deletions
|
|
@ -83,9 +83,11 @@ public class UpdateCheckerTask implements Runnable {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
plugin.getLogger().info(UPDATE_CHECK_START);
|
||||
|
||||
UpdateManager updateManager = plugin.getUpdateManager();
|
||||
if (!updateManager.canRunUpdateCheck()) return;
|
||||
updateManager.updateLastUpdateCheck();
|
||||
|
||||
plugin.getLogger().info(UPDATE_CHECK_START);
|
||||
|
||||
GitHubResponse pluginResponse = getResponse(GITHUB_LINK);
|
||||
if (pluginResponse == null) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue