mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-12-01 07:03:43 +01:00
Setup a users calculated data when loaded by the SubjectCollection
This commit is contained in:
parent
9c8097ecb9
commit
d95891256b
@ -110,6 +110,10 @@ public class UserCollection implements SubjectCollection {
|
|||||||
service.getPlugin().getLog().warn("User Subject '" + u + "' was requested, but is not loaded in memory. Loading them from storage now.");
|
service.getPlugin().getLog().warn("User Subject '" + u + "' was requested, but is not loaded in memory. Loading them from storage now.");
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
service.getPlugin().getStorage().loadUser(u, "null").join();
|
service.getPlugin().getStorage().loadUser(u, "null").join();
|
||||||
|
User user = service.getPlugin().getUserManager().get(u);
|
||||||
|
if (user != null) {
|
||||||
|
user.setupData(false);
|
||||||
|
}
|
||||||
service.getPlugin().getLog().warn("Loading '" + u + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
service.getPlugin().getLog().warn("Loading '" + u + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user