skin client update fix
This commit is contained in:
@ -24,20 +24,20 @@ pub struct HasJoinedProperty {
|
||||
value: String,
|
||||
}
|
||||
|
||||
fn create_profile_response(uuid: String, username: String) -> Response {
|
||||
fn create_profile_response(uuid: String, username: String, skin_date: String, cape_date: String) -> Response {
|
||||
let textures = serde_json::json!({
|
||||
"timestamp": chrono::Utc::now().timestamp(),
|
||||
"profileId": uuid,
|
||||
"profileName": username,
|
||||
"textures": {
|
||||
"SKIN": {
|
||||
"url": format!("http://root-kit.ru:3001/textures/skin/{}.png", uuid),
|
||||
"url": format!("https://root-kit.ru:3002/textures/skin/skin_{}_{}.png", uuid, skin_date),
|
||||
"metadata": {
|
||||
"model": "slim"
|
||||
}
|
||||
},
|
||||
"CAPE": {
|
||||
"url": format!("http://root-kit.ru:3001/textures/cape/{}.png", uuid),
|
||||
"url": format!("https://root-kit.ru:3002/textures/cape/cape_{}_{}.png", uuid, cape_date),
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user