Respect -Dminecraft.api.session.host

This commit is contained in:
Evan Goode 2024-08-21 14:51:48 -04:00
parent b40e39eea5
commit b51b893abb

View File

@ -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;