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