Thanks, I've seen it before, but the last time I tried it, it doesn't work. But now it works - I don't know why, but it works.
I have another question. I have an external application that checks whether an account is logged on to a particular server. So I found out that I can use this (https://sessionserver.mojang.com/session/minecraft/hasJoined?username=username&serverId=hash&ip=ip)
Url, but I need the serverId - so I tried to work with the SPacketEncryptionRequest package and added it to the getHandledPackets () method - but I don't get a package. Is this package disabled by the handlePacket () method? Is there any other way to get the serverId through liteloader? Other packages like the SPacketRespawn package work fine.