From d4d144fe365e6ac6bd19ecc236265aa25315a197 Mon Sep 17 00:00:00 2001 From: Minat0_ Date: Mon, 8 Jan 2024 15:27:08 +0300 Subject: [PATCH] fix: update the Mojang API endpoint (#413) As of 23w42a, the "Usernames to UUIDs" endpoint moved to: POST https://api.minecraftservices.com/minecraft/profile/lookup/bulk/byname --- .../net/sacredlabyrinth/phaed/simpleclans/uuid/UUIDFetcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/sacredlabyrinth/phaed/simpleclans/uuid/UUIDFetcher.java b/src/main/java/net/sacredlabyrinth/phaed/simpleclans/uuid/UUIDFetcher.java index c002b65e7..7ad24c312 100644 --- a/src/main/java/net/sacredlabyrinth/phaed/simpleclans/uuid/UUIDFetcher.java +++ b/src/main/java/net/sacredlabyrinth/phaed/simpleclans/uuid/UUIDFetcher.java @@ -27,7 +27,7 @@ public class UUIDFetcher implements Callable> { 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 names; private final boolean rateLimiting;