Procházet zdrojové kódy

Change PROFILES_PER_REQUEST to 50

@blood thinks this may fix the 429 issue
riking před 10 roky
rodič
revize
3b441073fd

+ 1 - 1
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<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();

+ 1 - 1
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