Run user cleanup task async and not on Storage init
This commit is contained in:
+3
-1
@@ -109,7 +109,9 @@ public abstract class FlatfileBacking extends AbstractBacking {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
cleanupUsers();
|
||||
// schedule user cleanup
|
||||
plugin.getScheduler().asyncLater(this::cleanupUsers, 10L);
|
||||
|
||||
setAcceptingLogins(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user