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

View File

@ -18,7 +18,7 @@ import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
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 String PROFILE_URL = "https://api.mojang.com/profiles/minecraft";
private final JSONParser jsonParser = new JSONParser();

View File

@ -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