From 3b441073fdeb02bc301b3f8bb95d0e4189bd05d1 Mon Sep 17 00:00:00 2001 From: riking Date: Tue, 18 Nov 2014 17:25:03 -0800 Subject: [PATCH] Change PROFILES_PER_REQUEST to 50 @blood thinks this may fix the 429 issue --- src/main/java/com/gmail/nossr50/util/uuid/UUIDFetcher.java | 2 +- src/main/resources/hidden.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/uuid/UUIDFetcher.java b/src/main/java/com/gmail/nossr50/util/uuid/UUIDFetcher.java index 289cf217d..dd1ff3fab 100644 --- a/src/main/java/com/gmail/nossr50/util/uuid/UUIDFetcher.java +++ b/src/main/java/com/gmail/nossr50/util/uuid/UUIDFetcher.java @@ -18,7 +18,7 @@ import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; public class UUIDFetcher implements Callable> { - private static final int PROFILES_PER_REQUEST = 100; + private static final int PROFILES_PER_REQUEST = 50; private static final long RATE_LIMIT = 100L; private static final String PROFILE_URL = "https://api.mojang.com/profiles/minecraft"; private final JSONParser jsonParser = new JSONParser(); diff --git a/src/main/resources/hidden.yml b/src/main/resources/hidden.yml index bef9a6461..bba05227f 100644 --- a/src/main/resources/hidden.yml +++ b/src/main/resources/hidden.yml @@ -11,7 +11,7 @@ Options: EnchantmentBuffs: true # Amount of users to convert every interval - UUIDConvertAmount: 200 + UUIDConvertAmount: 50 # Amount of users to be converted at a time before waiting MojangLimitPeriod milliseconds to begin again # This setting is for large servers to avoid being temp banned from mojang api MojangRateLimit: 200