Fix data not being loaded sync when the plugin starts

This commit is contained in:
Luck
2016-10-29 21:14:59 +01:00
Unverified
parent bb6b31d715
commit c0ea2d8ec3
3 changed files with 9 additions and 9 deletions
@@ -206,11 +206,11 @@ public class LPSpongePlugin implements LuckPermsPlugin {
if (mins > 0) {
scheduler.createTaskBuilder().async().interval(mins, TimeUnit.MINUTES).execute(new UpdateTask(this))
.submit(LPSpongePlugin.this);
} else {
// Update online users
updateTaskBuffer.request();
}
// run an update instantly.
updateTaskBuffer.requestDirectly();
// register tasks
scheduler.createTaskBuilder().intervalTicks(1L).execute(SpongeSenderFactory.get(this)).submit(this);
scheduler.createTaskBuilder().async().intervalTicks(60L).execute(new ExpireTemporaryTask(this)).submit(this);