1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2025-06-19 07:21:26 +02:00

Change PROFILES_PER_REQUEST to 50

@blood thinks this may fix the 429 issue
This commit is contained in:
riking 2014-11-18 17:25:03 -08:00
parent da22a8ff93
commit 3b441073fd
2 changed files with 2 additions and 2 deletions
src/main
java/com/gmail/nossr50/util/uuid
resources

@ -18,7 +18,7 @@ import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser; import org.json.simple.parser.JSONParser;
public class UUIDFetcher implements Callable<Map<String, UUID>> { public class UUIDFetcher implements Callable<Map<String, UUID>> {
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 long RATE_LIMIT = 100L;
private static final String PROFILE_URL = "https://api.mojang.com/profiles/minecraft"; private static final String PROFILE_URL = "https://api.mojang.com/profiles/minecraft";
private final JSONParser jsonParser = new JSONParser(); private final JSONParser jsonParser = new JSONParser();

@ -11,7 +11,7 @@ Options:
EnchantmentBuffs: true EnchantmentBuffs: true
# Amount of users to convert every interval # 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 # 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 # This setting is for large servers to avoid being temp banned from mojang api
MojangRateLimit: 200 MojangRateLimit: 200