Search in sources :

Example 1 with LoginSuccessMessage

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);
}
Also used : LoginSuccessMessage(net.glowstone.net.message.login.LoginSuccessMessage)

Aggregations

LoginSuccessMessage (net.glowstone.net.message.login.LoginSuccessMessage)1