[U] Keep mc username and uuid

This commit is contained in:
Hykilpikonna
2022-08-31 15:31:38 -04:00
parent caf39b6f42
commit f19b0c3daf
2 changed files with 34 additions and 9 deletions
+6 -2
View File
@@ -36,17 +36,21 @@ ClientSecret: Paste the "Value" you copied here
#### 2. Login!
You can now run `mc-auth` to login! After logging in, it will create a text file `~/.config/mc-auth/mc-token.txt` containing your minecraft token.
You can now run `mc-authn` to login! After logging in, it will create a text file `~/.config/mc-auth/mc-token.txt` containing your minecraft token.
In your start script for minecraft, add the `--accessToken` argument to the java line used to start minecraft:
```shell
mc-authn
export name=$(< ~/.config/mc-auth/mc-name.txt)
export uuid=$(< ~/.config/mc-auth/mc-uuid.txt)
export auth=$(< ~/.config/mc-auth/mc-token.txt)
java ... net.minecraft.client.main.Main ... \
--accessToken ${auth} \
--uuid ${uuid}
--uuid ${uuid} \
--username ${name}
```
#### 3. Start Minecraft!