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
@@ -164,11 +164,11 @@ public class LPBungeePlugin extends Plugin implements LuckPermsPlugin {
int mins = getConfiguration().getSyncTime();
if (mins > 0) {
getProxy().getScheduler().schedule(this, new UpdateTask(this), mins, mins, TimeUnit.MINUTES);
} else {
// Update online users
updateTaskBuffer.request();
}
// run an update instantly.
updateTaskBuffer.requestDirectly();
// register tasks
getProxy().getScheduler().schedule(this, BungeeSenderFactory.get(this), 50L, 50L, TimeUnit.MILLISECONDS); // 20 times per second (once per "tick")
getProxy().getScheduler().schedule(this, new ExpireTemporaryTask(this), 3L, 3L, TimeUnit.SECONDS);