use of net.glowstone.net.message.login.LoginSuccessMessage in project Glowstone by GlowstoneMC.
the class GlowSession method finalizeLogin.
private void finalizeLogin(PlayerProfile profile) {
// enable compression if needed
int compression = getServer().getCompressionThreshold();
if (compression > 0) {
enableCompression(compression);
}
// send login response
send(new LoginSuccessMessage(profile.getUniqueId().toString(), profile.getName()));
setProtocol(ProtocolType.PLAY);
}
Aggregations