// spawn player
session.getServer().getScheduler().runTask(null, new Runnable() {
@Override
public void run() {
session.setPlayer(new PlayerProfile(name, uuid, properties));
}
});
} catch (Exception e) {
GlowServer.logger.log(Level.SEVERE, "Error in authentication thread", e);
session.disconnect("Internal error during authentication.", true);