fix: skin name to uuid lookup endpoint

This commit is contained in:
D3v1s0m 2025-06-13 17:19:43 +05:30
parent 63db907d32
commit 1974b4b34b
No known key found for this signature in database
GPG key ID: FA1F770C7B1D40C1

View file

@ -48,7 +48,7 @@ public class MojangSkinCache {
if (idCache.containsKey(name.toLowerCase())) return fetchByUUID(idCache.get(name.toLowerCase()).getId()); if (idCache.containsKey(name.toLowerCase())) return fetchByUUID(idCache.get(name.toLowerCase()).getId());
return FutureUtil.exceptionPrintingSupplyAsync(() -> { return FutureUtil.exceptionPrintingSupplyAsync(() -> {
URL url = parseUrl("https://api.mojang.com/users/profiles/minecraft/" + name); URL url = parseUrl("https://api.minecraftservices.com/minecraft/profile/lookup/name/" + name);
HttpURLConnection connection = null; HttpURLConnection connection = null;
try { try {
connection = (HttpURLConnection) url.openConnection(); connection = (HttpURLConnection) url.openConnection();