trying to fix gregnant horse, but not working

i get timeout :(
but yes, it is because of SRV records stuff. it seems to work by redirecting clients that do SRV to mc.pregnanthorse.net, which is the trap server. but since the minecraft client doesn't resolve any, it just uses pregnanthorse.net, which is the actual server. anyways, heres the exception
Internal Exception: io.netty.channel.ConnectTimeoutException: connection timed out after 30000 ms: pregnant.horse/172.67.143.132:25565
This commit is contained in:
Chayapak 2024-10-20 14:00:40 +07:00
parent f96b9f0688
commit 096a013ebd

View file

@ -4,6 +4,7 @@ import me.chayapak1.chomens_bot.plugins.*;
import me.chayapak1.chomens_bot.util.ComponentUtilities;
import me.chayapak1.chomens_bot.util.RandomStringUtilities;
import org.geysermc.mcprotocollib.auth.GameProfile;
import org.geysermc.mcprotocollib.network.BuiltinFlags;
import org.geysermc.mcprotocollib.network.Session;
import org.geysermc.mcprotocollib.network.event.session.*;
import org.geysermc.mcprotocollib.network.packet.Packet;
@ -160,6 +161,10 @@ public class Bot {
this.session = session;
// this replicates the minecraft behavior of not resolving SRV records.
// some servers check for this, so that's why i have it here
session.setFlag(BuiltinFlags.ATTEMPT_SRV_RESOLVE, false);
session.addListener(new SessionAdapter() {
// fard