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

This commit is contained in:
Luck committed 2017-04-21 19:10:25 +01:00
1 parent c64f72e394
commit f43b9c96de
5 files changed
+72 -81

No files matched your search

@@ -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();