Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static GameProfile loadGameProfileCached(String apiRoot, String username)
//Username -> UUID
public static GameProfile loadGameProfile(String apiRoot, String username) {
//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))));
HttpRequestUtil.HttpResponce responce = HttpRequestUtil.makeHttpRequest(new HttpRequestUtil.HttpRequest(apiRoot + "minecraft/profile/lookup/bulk/byname").setCacheTime(600).setPayload(GSON.toJson(Collections.singletonList(username))));
if (StringUtils.isEmpty(responce.content)) {
return null;
}
Expand Down Expand Up @@ -212,7 +212,7 @@ public void init(SkinSiteProfile ssp) {
}

// Prevent authlib-injector (https://github.com/yushijinhun/authlib-injector) from modifying these strings
private static final String MOJANG_API_ROOT = "https://api{DO_NOT_MODIFY}.mojang.com/";
private static final String MOJANG_API_ROOT = "https://api{DO_NOT_MODIFY}.minecraftservices.com/";
private static final String MOJANG_SESSION_ROOT = "https://sessionserver{DO_NOT_MODIFY}.mojang.com/";

public static String getMojangApiRoot() {
Expand Down