Skip to content

Commit

Permalink
更新与 Mojang API Wiki 相关的地址 (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
cewno authored Dec 20, 2024
1 parent 8e63429 commit a9b2484
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static GameProfile loadGameProfileCached(String apiRoot, String username)

//Username -> UUID
public static GameProfile loadGameProfile(String apiRoot, String username) {
//Doc (https://wiki.vg/Mojang_API#Playernames_-.3E_UUIDs)
//Doc (https://minecraft.wiki/w/Mojang_API#Query_player_UUIDs_in_batch)
HttpRequestUtil.HttpResponce responce = HttpRequestUtil.makeHttpRequest(new HttpRequestUtil.HttpRequest(apiRoot + "profiles/minecraft").setCacheTime(600).setPayload(GSON.toJson(Collections.singletonList(username))));
if (StringUtils.isEmpty(responce.content)) {
return null;
Expand Down Expand Up @@ -154,7 +154,7 @@ public static String getMojangUuidByUsername(String username, boolean standard)

//UUID -> Profile
public static GameProfile fillGameProfile(String sessionRoot, GameProfile profile) {
//Doc (http://wiki.vg/Mojang_API#UUID_-.3E_Profile_.2B_Skin.2FCape)
//Doc (https://minecraft.wiki/w/Mojang_API#Query_player's_skin_and_cape)
HttpRequestUtil.HttpResponce responce = HttpRequestUtil.makeHttpRequest(new HttpRequestUtil.HttpRequest(sessionRoot + "session/minecraft/profile/" + TextureUtil.fromUUID(profile.getId())).setCacheTime(90));
if (StringUtils.isEmpty(responce.content)) {
return profile;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The problem of incorrectly rendering textures has been fixed.
By using this mod, you can see correct avatar of players in Spectator Menu rather than steve and alex.

## Default Load List
- [Mojang](http://www.minecraft.net/) (MojangAPI)
- [Mojang](https://minecraft.wiki/w/Mojang_API) (MojangAPI)
- [LittleSkin](https://littleskin.cn/) (CustomSkinAPI)
- [BlessingSkin](http://skin.prinzeugen.net/) (CustomSkinAPI)
- [ElyBy](http://docs.ely.by/) (ElyByAPI)
Expand Down

0 comments on commit a9b2484

Please sign in to comment.