浏览代码

Change PROFILES_PER_REQUEST to 50

@blood thinks this may fix the 429 issue
riking 10 年之前
父节点
当前提交
3b441073fd
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/main/java/com/gmail/nossr50/util/uuid/UUIDFetcher.java
  2. 1 1
      src/main/resources/hidden.yml

+ 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