mirror of
https://github.com/JEFF-Media-GbR/ChestSort.git
synced 2025-02-13 02:41:24 +01:00
UpdateChecker is now async too when using "on-startup"
This commit is contained in:
parent
8019717f50
commit
ca721a1b4b
@ -137,8 +137,13 @@ public class JeffChestSortPlugin extends JavaPlugin {
|
|||||||
}
|
}
|
||||||
}, 0L, updateCheckInterval * 20);
|
}, 0L, updateCheckInterval * 20);
|
||||||
} else if (getConfig().getString("check-for-updates", "true").equalsIgnoreCase("on-startup")) {
|
} else if (getConfig().getString("check-for-updates", "true").equalsIgnoreCase("on-startup")) {
|
||||||
|
getServer().getScheduler().scheduleSyncDelayedTask(this, new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
updateChecker.checkForUpdate();
|
updateChecker.checkForUpdate();
|
||||||
}
|
}
|
||||||
|
}, 0L);
|
||||||
|
}
|
||||||
|
|
||||||
Metrics metrics = new Metrics(this);
|
Metrics metrics = new Metrics(this);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user