Skip to content

Instantly share code, notes, and snippets.

@kotran
kotran / MinecraftLogin.java
Last active June 21, 2022 06:10 — forked from zzh8829/MinecraftLogin.java
[1.8.x] Connect to legit Minecraft server with forge/mcp Minecraft inside eclipse
/*
* A java file to use in eclipse/MCP in order to authenticate with Minecraft's servers
* This allows for modders to play online (legit servers) straight from eclipse -- streamlining the modding process
* Works for MC 1.8.X
*
* To use:
* 1) Place this .java file somewhere in your project
* 2) in Minecraft.java
* replace:
this.sessionService = (new YggdrasilAuthenticationService(gameConfig.userInfo.proxy, UUID.randomUUID().toString())).createMinecraftSessionService();