mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Run user cleanup task async and not on Storage init
This commit is contained in:
parent
509826949d
commit
fbe9d9f128
@ -109,7 +109,9 @@ public abstract class FlatfileBacking extends AbstractBacking {
|
|||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
cleanupUsers();
|
// schedule user cleanup
|
||||||
|
plugin.getScheduler().asyncLater(this::cleanupUsers, 10L);
|
||||||
|
|
||||||
setAcceptingLogins(true);
|
setAcceptingLogins(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user