mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Change PROFILES_PER_REQUEST to 50
@blood thinks this may fix the 429 issue
This commit is contained in:
parent
da22a8ff93
commit
3b441073fd
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user