スキンが変更されない

command /skin [<offline player>]:
trigger:
if arg-1 is set:
send request to "https://api.mineskin.org/generate/user/%arg-1's uuid%"
set {_res} to response
map json body of {_res} to {_json::*}
set {_value} to {_json::data::texture::value}
set {_signature} to {_json::data::texture::signature}
set {_skin} to skin with value {_value} signature {_signature}
set player's default displayed skin to {_skin}
else:
send request to "https://api.mineskin.org/generate/user/%player's uuid%"
set {_res} to response
map json body of {_res} to {_json::*}
set {_value} to {_json::data::texture::value}
set {_signature} to {_json::data::texture::signature}
set {_skin} to skin with value {_value} signature {_signature}
set player's default displayed skin to {_skin}
command /skin [<offline player>]:
trigger:
if arg-1 is set:
send request to "https://api.mineskin.org/generate/user/%arg-1's uuid%"
set {_res} to response
map json body of {_res} to {_json::*}
set {_value} to {_json::data::texture::value}
set {_signature} to {_json::data::texture::signature}
set {_skin} to skin with value {_value} signature {_signature}
set player's default displayed skin to {_skin}
else:
send request to "https://api.mineskin.org/generate/user/%player's uuid%"
set {_res} to response
map json body of {_res} to {_json::*}
set {_value} to {_json::data::texture::value}
set {_signature} to {_json::data::texture::signature}
set {_skin} to skin with value {_value} signature {_signature}
set player's default displayed skin to {_skin}
Skript 2.6.3 MundoSK 1.8.6-BETA.58 試しにみらげさんのMCIDでやりましたが動作しませんでした
Solution:
skrageでもvalueとsignature使ってスキン変更できるよ
Jump to solution
8 Replies
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
どこまで動いてる? リクエストと返り値は正常?
nennneko5787
nennneko5787OP13mo ago
はい valueもsignatureも大丈夫っぽそうでした
わし
わし13mo ago
PlayerRealmsだと外部との通信が制限されてるからできないという話があった
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
でもまぁ取れてるってことはそこではないんやろな
nennneko5787
nennneko5787OP13mo ago
1年前はできたんですよね 1年前のコード探してみますね
Solution
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
skrageでもvalueとsignature使ってスキン変更できるよ
mirageeeeeeeeeeeeeeeeeeeeeeeeeee
mundoskと違って変更時のロード画面ないからそっちの方がいいと思う
nennneko5787
nennneko5787OP13mo ago
できました、ありがとうございます
command /skin [<offline player>]:
trigger:
if arg-1 is set:
send request to "https://api.mineskin.org/generate/user/%arg-1's uuid%"
set {_res} to response
map json body of {_res} to {_json::*}
set {_value} to {_json::data::texture::value}
set {_signature} to {_json::data::texture::signature}
# set {_skin} to skin with value {_value} signature {_signature}
set {_skin} to new player skin with value {_value} signature {_signature}
set player's displayed player skin to {_skin}
else:
send request to "https://api.mineskin.org/generate/user/%player's uuid%"
set {_res} to response
map json body of {_res} to {_json::*}
set {_value} to {_json::data::texture::value}
set {_signature} to {_json::data::texture::signature}
set {_skin} to new player skin with value {_value} signature {_signature}
set player's displayed player skin to {_skin}
command /skin [<offline player>]:
trigger:
if arg-1 is set:
send request to "https://api.mineskin.org/generate/user/%arg-1's uuid%"
set {_res} to response
map json body of {_res} to {_json::*}
set {_value} to {_json::data::texture::value}
set {_signature} to {_json::data::texture::signature}
# set {_skin} to skin with value {_value} signature {_signature}
set {_skin} to new player skin with value {_value} signature {_signature}
set player's displayed player skin to {_skin}
else:
send request to "https://api.mineskin.org/generate/user/%player's uuid%"
set {_res} to response
map json body of {_res} to {_json::*}
set {_value} to {_json::data::texture::value}
set {_signature} to {_json::data::texture::signature}
set {_skin} to new player skin with value {_value} signature {_signature}
set player's displayed player skin to {_skin}
No description
Want results from more Discord servers?
Add your server