From b51b893abb9097501698e22dffaf9e43f9b5caf8 Mon Sep 17 00:00:00 2001 From: Evan Goode Date: Wed, 21 Aug 2024 14:51:48 -0400 Subject: [PATCH] Respect -Dminecraft.api.session.host --- src/gg/codie/minecraft/api/SessionServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gg/codie/minecraft/api/SessionServer.java b/src/gg/codie/minecraft/api/SessionServer.java index 20127bd..38644f1 100644 --- a/src/gg/codie/minecraft/api/SessionServer.java +++ b/src/gg/codie/minecraft/api/SessionServer.java @@ -5,7 +5,7 @@ import java.net.HttpURLConnection; import java.net.URL; public class SessionServer { - private static final String BASE_URL = "https://sessionserver.mojang.com"; + private static final String BASE_URL = System.getProperty("minecraft.api.session.host", "https://sessionserver.mojang.com"); public static boolean hasJoined(String username, String serverId, String ip) throws IOException { HttpURLConnection connection;