diff --git a/src/main/java/me/chayapak1/chomens_bot/Bot.java b/src/main/java/me/chayapak1/chomens_bot/Bot.java index 472ac51..28dcbd7 100644 --- a/src/main/java/me/chayapak1/chomens_bot/Bot.java +++ b/src/main/java/me/chayapak1/chomens_bot/Bot.java @@ -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