Original bug report by @Moresteck.
While launching versions between a1.2.0 and a1.2.6, the player name is always set to:"Player" + System.currentTimeMillis() % 1000L
instead of the actual player's name.
This can be simply solved by adding a tweakClass
minecraft argument from other Alpha jsons to these Alpha 1.2.x json files:"minecraftArguments": "${auth_player_name} ${auth_session} --gameDir ${game_directory} --assetsDir ${game_assets} {color:#00875a}--tweakClass net.minecraft.launchwrapper.AlphaVanillaTweaker{color}"
It's simple to fix, and if fixed, it will stop making people search for launcher alternatives just to join Alpha 1.2.x servers.
Here are the reproduction steps:
First you need to step up the environnement:
Download a copy of the Minecraft Server from the official wiki: https://minecraft.fandom.com/wiki/Java_Edition_Alpha_server_0.2.8
Launch it once, then type stop to shut it down.
Edit server.properties to turn online-mode=true into online-mode=false
Start the server again.
The environnement is now set up. Now we do the test:
Inside the Minecraft Launcher, choose the Alpha 1.2.6
Launch it
Go into multiplayer and type localhost.
Notice that your username has been totally forgotten by the server, and instead you are called something like PlayerVVV where VVV is a 3-digit number.
You can find the media
[media]which shows the bug fixed with the added parameter, and
[media]which shows the current situation (buggy)
Also sorry for the media quality.
Also, note that the change has a side effect, at least for alpha 1.2.6: when closing it, the launcher will think that it crashed. (It can easily be fixed by patching the LegacyLauncher component:
Changing:
System.exit(1);
to
System.exit(0);
at line 91 in file src/main/java/net/minecraft/launchwrapper/injector/AlphaVanillaTweakInjector.java
)
Thank you for your report!
This issue will not be fixed per Java team.
Closing as won't fix.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki