cleanup login handling & add CountdownLatch to ensure the plugin has started before logins are handled

This commit is contained in:
Luck
2017-04-21 19:10:25 +01:00
Unverified
parent c64f72e394
commit f43b9c96de
5 changed files with 72 additions and 81 deletions
@@ -108,7 +108,7 @@ public class SpongeListener {
- creating a user instance in the UserManager for this connection.
- setting up cached data. */
try {
LoginHelper.loadUser(plugin, p.getUniqueId(), p.getName().orElseThrow(() -> new RuntimeException("No username present for user " + p.getUniqueId())));
LoginHelper.loadUser(plugin, p.getUniqueId(), p.getName().orElseThrow(() -> new RuntimeException("No username present for user " + p.getUniqueId())), false);
} catch (Exception ex) {
ex.printStackTrace();