Compare commits

...
1 Commits
Author SHA1 Message Date
Minat0_ 747d176f8d fix: update the Mojang API endpoint
As of 23w42a, the "Usernames to UUIDs" endpoint moved to:
POST https://api.minecraftservices.com/minecraft/profile/lookup/bulk/byname
2024-01-08 15:01:09 +03:00
@@ -27,7 +27,7 @@ import static java.nio.charset.StandardCharsets.UTF_8;
public class UUIDFetcher implements Callable<Map<String, UUID>> {
private static final double PROFILES_PER_REQUEST = 100;
private static final String PROFILE_URL = "https://api.mojang.com/profiles/minecraft";
private static final String PROFILE_URL = "https://api.minecraftservices.com/minecraft/profile/lookup/bulk/byname";
private final Gson gson = new Gson();
private final List<String> names;
private final boolean rateLimiting;