Only save unique users

This commit is contained in:
Luck
2016-08-28 21:36:16 +01:00
Unverified
parent 9f5e194a6e
commit 6aea3b53f3
21 changed files with 412 additions and 242 deletions
@@ -59,7 +59,7 @@ public class AbstractListener {
plugin.getDatastore().saveUUIDData(username, u, Callback.empty());
}
plugin.getDatastore().loadOrCreateUser(cache.getUUID(u), username);
plugin.getDatastore().loadUser(cache.getUUID(u), username);
final long time = System.currentTimeMillis() - startTime;
if (time >= 1000) {
plugin.getLog().warn("Processing login for " + username + " took " + time + "ms.");