[U] Keep mc username and uuid
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user