mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-03 02:23:44 +01: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;
 | 
			
		||||
 | 
			
		||||
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 String PROFILE_URL = "https://api.mojang.com/profiles/minecraft";
 | 
			
		||||
    private final List<String> names;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user