From ec4d2d45a1b367e1607b1a9ff1ba874ab8501a20 Mon Sep 17 00:00:00 2001 From: Corey Shupe Date: Tue, 17 Aug 2021 13:14:39 -0400 Subject: [PATCH] Make Mojang Sessionserver Configurable (#560) --- .../proxy/connection/client/LoginSessionHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java index 3ea4b0481..6e3c9ac28 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/LoginSessionHandler.java @@ -75,7 +75,8 @@ public class LoginSessionHandler implements MinecraftSessionHandler { private static final Logger logger = LogManager.getLogger(LoginSessionHandler.class); private static final String MOJANG_HASJOINED_URL = - "https://sessionserver.mojang.com/session/minecraft/hasJoined?username=%s&serverId=%s"; + System.getProperty("mojang.sessionserver", "https://sessionserver.mojang.com/session/minecraft/hasJoined") + .concat("?username=%s&serverId=%s"); private final VelocityServer server; private final MinecraftConnection mcConnection;