mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-25 12:05:13 +01:00
Updated Player Skin (markdown)
parent
5952bba4e3
commit
4ae6c5caca
@ -7,9 +7,13 @@ There are three ways of defining a player skin:
|
|||||||
Most of what I will say is described here: https://wiki.vg/Mojang_API#Username_-.3E_UUID_at_time
|
Most of what I will say is described here: https://wiki.vg/Mojang_API#Username_-.3E_UUID_at_time
|
||||||
|
|
||||||
You firstly need to get your Mojang UUID, which can be done by a request based on your username:
|
You firstly need to get your Mojang UUID, which can be done by a request based on your username:
|
||||||
|
```
|
||||||
GET https://api.mojang.com/users/profiles/minecraft/<username>?at=<timestamp>
|
GET https://api.mojang.com/users/profiles/minecraft/<username>?at=<timestamp>
|
||||||
|
```
|
||||||
Then, after getting your UUID:
|
Then, after getting your UUID:
|
||||||
|
```
|
||||||
GET https://sessionserver.mojang.com/session/minecraft/profile/<uuid>?unsigned=false
|
GET https://sessionserver.mojang.com/session/minecraft/profile/<uuid>?unsigned=false
|
||||||
|
```
|
||||||
You'll get here both the texture value and the signature. Those values are used to create a PlayerSkin.
|
You'll get here both the texture value and the signature. Those values are used to create a PlayerSkin.
|
||||||
|
|
||||||
## PlayerSkinInitEvent
|
## PlayerSkinInitEvent
|
||||||
|
Loading…
Reference in New Issue
Block a user