Make Mojang Sessionserver Configurable (#560)

This commit is contained in:
Corey Shupe 2021-08-17 13:14:39 -04:00 committed by GitHub
parent d3ff6f8e33
commit ec4d2d45a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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