mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-10 01:24:44 +02:00
Reduce mojang profile API call limit (Fixes #4121)
This commit is contained in:
@ -15,7 +15,7 @@ import java.util.*;
|
|||||||
import java.util.concurrent.Callable;
|
import java.util.concurrent.Callable;
|
||||||
|
|
||||||
public class UUIDFetcher implements Callable<Map<String, UUID>> {
|
public class UUIDFetcher implements Callable<Map<String, UUID>> {
|
||||||
private static final int PROFILES_PER_REQUEST = 50;
|
private static final int PROFILES_PER_REQUEST = 10;
|
||||||
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 List<String> names;
|
private final List<String> names;
|
||||||
|
Reference in New Issue
Block a user