mirror of
https://github.com/craftycodie/OnlineModeFix.git
synced 2025-08-03 08:55:56 -04:00
Respect -Dminecraft.api.session.host
This commit is contained in:
parent
b40e39eea5
commit
b51b893abb
@ -5,7 +5,7 @@ import java.net.HttpURLConnection;
|
|||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
|
|
||||||
public class SessionServer {
|
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 {
|
public static boolean hasJoined(String username, String serverId, String ip) throws IOException {
|
||||||
HttpURLConnection connection;
|
HttpURLConnection connection;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user