mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
Add back in the UUID upgrade classes just in case anyone from 2014 shows
up
This commit is contained in:
parent
71a2ea2a2e
commit
08269cab5b
@ -1,7 +1,6 @@
|
|||||||
/*
|
|
||||||
package com.gmail.nossr50.runnables.database;
|
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.database.DatabaseManager;
|
||||||
import com.gmail.nossr50.datatypes.database.UpgradeType;
|
import com.gmail.nossr50.datatypes.database.UpgradeType;
|
||||||
import com.gmail.nossr50.mcMMO;
|
import com.gmail.nossr50.mcMMO;
|
||||||
@ -17,9 +16,9 @@ import java.util.logging.Level;
|
|||||||
|
|
||||||
public class UUIDUpdateAsyncTask extends BukkitRunnable {
|
public class UUIDUpdateAsyncTask extends BukkitRunnable {
|
||||||
private mcMMO plugin;
|
private mcMMO plugin;
|
||||||
private static final int MAX_LOOKUP = Math.max(ChunkConversionOptions.getUUIDConvertAmount(), 100);
|
private static final int MAX_LOOKUP = 100;
|
||||||
private static final int RATE_LIMIT = ChunkConversionOptions.getMojangRateLimit();
|
private static final int RATE_LIMIT = 300;
|
||||||
private static final long LIMIT_PERIOD = ChunkConversionOptions.getMojangLimitPeriod();
|
private static final long LIMIT_PERIOD = 6000;
|
||||||
private static final int BATCH_SIZE = MAX_LOOKUP * 3;
|
private static final int BATCH_SIZE = MAX_LOOKUP * 3;
|
||||||
|
|
||||||
private List<String> userNames;
|
private List<String> userNames;
|
||||||
@ -104,4 +103,3 @@ public class UUIDUpdateAsyncTask extends BukkitRunnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
@ -104,6 +104,6 @@ public class UUIDFetcher implements Callable<Map<String, UUID>> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static UUID getUUIDOf(String name) throws Exception {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user