Unlimited custom xp perks Part 1

This commit is contained in:
nossr50
2019-05-08 06:44:19 -07:00
parent 0331c98c9b
commit 40598a0e96
52 changed files with 1579 additions and 1543 deletions

View File

@@ -55,19 +55,16 @@ public class UUIDUpdateAsyncTask extends BukkitRunnable {
if (size > MAX_LOOKUP) {
userNamesSection = userNames.subList(size - MAX_LOOKUP, size);
size -= MAX_LOOKUP;
}
else {
} else {
userNamesSection = userNames.subList(0, size);
size = 0;
}
try {
fetchedUUIDs.putAll(new UUIDFetcher(userNamesSection).call());
}
catch (Exception e) {
} catch (Exception e) {
// Handle 429
if(e.getMessage() != null)
{
if (e.getMessage() != null) {
if (e.getMessage().contains("429")) {
size += userNamesSection.size();
try {