mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-19 14:19:11 +00:00
Sponge: remove spammy user not already loaded message
This commit is contained in:
2 files changed
+4
-4
No files matched your search
@@ -144,7 +144,7 @@ public class SpongeGroupManager implements GroupManager, LPSubjectCollection {
|
||||
} else {
|
||||
|
||||
// Group isn't already loaded. hopefully this call is not on the main thread. :(
|
||||
plugin.getLog().warn("Group Subject '" + id + "' was requested, but is not loaded in memory. Loading it from storage now.");
|
||||
//plugin.getLog().warn("Group Subject '" + id + "' was requested, but is not loaded in memory. Loading it from storage now.");
|
||||
long startTime = System.currentTimeMillis();
|
||||
plugin.getStorage().createAndLoadGroup(id).join();
|
||||
SpongeGroup group = getIfLoaded(id);
|
||||
@@ -154,7 +154,7 @@ public class SpongeGroupManager implements GroupManager, LPSubjectCollection {
|
||||
return plugin.getService().getFallbackGroupSubjects().get(id);
|
||||
}
|
||||
|
||||
plugin.getLog().warn("Loading '" + id + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
||||
//plugin.getLog().warn("Loading '" + id + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
||||
return group.getSpongeData();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ public class SpongeUserManager implements UserManager, LPSubjectCollection {
|
||||
} else {
|
||||
|
||||
// User isn't already loaded. hopefully this call is not on the main thread. :(
|
||||
plugin.getLog().warn("User Subject '" + u + "' was requested, but is not loaded in memory. Loading them from storage now.");
|
||||
//plugin.getLog().warn("User Subject '" + u + "' was requested, but is not loaded in memory. Loading them from storage now.");
|
||||
long startTime = System.currentTimeMillis();
|
||||
plugin.getStorage().loadUser(u, "null").join();
|
||||
SpongeUser user = get(u);
|
||||
@@ -208,7 +208,7 @@ public class SpongeUserManager implements UserManager, LPSubjectCollection {
|
||||
}
|
||||
|
||||
user.setupData(false);
|
||||
plugin.getLog().warn("Loading '" + u + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
||||
//plugin.getLog().warn("Loading '" + u + "' took " + (System.currentTimeMillis() - startTime) + " ms.");
|
||||
return user.getSpongeData();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user