This commit is contained in:
Luck committed 2016-08-20 16:29:59 +01:00
1 parent 6fc00976a0
commit 471084a9ef
3 files changed
+24 -24

No files matched your search

@@ -88,14 +88,6 @@ public class LPBungeePlugin extends Plugin implements LuckPermsPlugin {
trackManager = new TrackManager();
importer = new Importer(commandManager);
// Run update task to refresh any online users
getLog().info("Scheduling Update Task to refresh any online users.");
try {
new UpdateTask(this).run();
} catch (Exception e) {
e.printStackTrace();
}
int mins = getConfiguration().getSyncTime();
if (mins > 0) {
getProxy().getScheduler().schedule(this, new UpdateTask(this), mins, mins, TimeUnit.MINUTES);
@@ -109,6 +101,14 @@ public class LPBungeePlugin extends Plugin implements LuckPermsPlugin {
apiProvider = new ApiProvider(this);
LuckPerms.registerProvider(apiProvider);
// Run update task to refresh any online users
getLog().info("Scheduling Update Task to refresh any online users.");
try {
new UpdateTask(this).run();
} catch (Exception e) {
e.printStackTrace();
}
getLog().info("Successfully loaded.");
}