Add back in the UUID upgrade classes just in case anyone from 2014 shows

up
This commit is contained in:
nossr50 2019-05-06 00:19:42 -07:00
parent 71a2ea2a2e
commit 08269cab5b
2 changed files with 7 additions and 9 deletions

View File

@ -1,7 +1,6 @@
/*
package com.gmail.nossr50.runnables.database;
import com.gmail.nossr50.config.ChunkConversionOptions;
import com.gmail.nossr50.config.HiddenConfig;
import com.gmail.nossr50.database.DatabaseManager;
import com.gmail.nossr50.datatypes.database.UpgradeType;
import com.gmail.nossr50.mcMMO;
@ -17,9 +16,9 @@ import java.util.logging.Level;
public class UUIDUpdateAsyncTask extends BukkitRunnable {
private mcMMO plugin;
private static final int MAX_LOOKUP = Math.max(ChunkConversionOptions.getUUIDConvertAmount(), 100);
private static final int RATE_LIMIT = ChunkConversionOptions.getMojangRateLimit();
private static final long LIMIT_PERIOD = ChunkConversionOptions.getMojangLimitPeriod();
private static final int MAX_LOOKUP = 100;
private static final int RATE_LIMIT = 300;
private static final long LIMIT_PERIOD = 6000;
private static final int BATCH_SIZE = MAX_LOOKUP * 3;
private List<String> userNames;
@ -103,5 +102,4 @@ public class UUIDUpdateAsyncTask extends BukkitRunnable {
plugin.getLogger().info("UUID upgrade completed!");
}
}
}
*/
}

View File

@ -104,6 +104,6 @@ public class UUIDFetcher implements Callable<Map<String, UUID>> {
}
public static UUID getUUIDOf(String name) throws Exception {
return new UUIDFetcher(Collections.singletonList(name)).call().get(name);
return new UUIDFetcher(Arrays.asList(name)).call().get(name);
}
}
}