diff --git a/src/main/java/xyz/atnrch/nicko/disguise/AppearanceManager.java b/src/main/java/xyz/atnrch/nicko/disguise/AppearanceManager.java index cc6f507..4386823 100644 --- a/src/main/java/xyz/atnrch/nicko/disguise/AppearanceManager.java +++ b/src/main/java/xyz/atnrch/nicko/disguise/AppearanceManager.java @@ -175,6 +175,11 @@ public class AppearanceManager { remove.sendPacket(player); } + // Yes, I skip providing chat session data. + // Yes, this will cause players to get kicked + // as soon as they send a message on versions above 1.19.2. + // No, I'll not waste another day fixing their mess. Go cry about it to Mojang. + // (Long live NoEncryption!) add.setData(ImmutableList.of(new PlayerInfoData( player.getUniqueId(), player.getPing(), @@ -182,11 +187,6 @@ public class AppearanceManager { EnumWrappers.NativeGameMode.fromBukkit(player.getGameMode()), gameProfile, WrappedChatComponent.fromText(displayName) - // Yes, I skip providing chat session data. - // Yes, this will cause players to get kicked - // as soon as they send a message on versions above 1.19.2. - // No, I'll not waste another day fixing their mess. Go cry about it to Mojang. - // (Long live NoEncryption!) ))); add.sendPacket(player); }