Don't schedule a delayed load task on startup (#1130)

This commit is contained in:
Luck 2018-08-05 21:51:53 +01:00
parent 4c891f0819
commit 381922fc02
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -166,7 +166,6 @@ public abstract class AbstractLuckPermsPlugin implements LuckPermsPlugin {
if (mins > 0) {
getBootstrap().getScheduler().asyncRepeating(() -> this.updateTaskBuffer.request(), mins, TimeUnit.MINUTES);
}
getBootstrap().getScheduler().asyncLater(() -> this.updateTaskBuffer.request(), 2, TimeUnit.SECONDS);
// run an update instantly.
getLogger().info("Performing initial data load...");