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
@@ -211,11 +211,11 @@ public class LPBukkitPlugin extends JavaPlugin implements LuckPermsPlugin {
if (mins > 0) {
long ticks = mins * 60 * 20;
getServer().getScheduler().runTaskTimerAsynchronously(this, () -> updateTaskBuffer.request(), 20L, ticks);
} else {
// Update online users
updateTaskBuffer.request();
}
// run an update instantly.
updateTaskBuffer.requestDirectly();
// register tasks
getServer().getScheduler().runTaskTimer(this, BukkitSenderFactory.get(this), 1L, 1L);
getServer().getScheduler().runTaskTimerAsynchronously(this, new ExpireTemporaryTask(this), 60L, 60L);