This changes the loading to not be on STARTUP (#2214)

Worlds are then created in onEnable and not one-tick later.
This commit is contained in:
tastybento 2023-10-28 21:16:36 -07:00 committed by GitHub
parent d903e57ad6
commit 4a6bf31dff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 9 deletions

View File

@ -169,14 +169,14 @@ public class BentoBox extends JavaPlugin implements Listener {
final long loadTime = System.currentTimeMillis() - loadStart;
Bukkit.getScheduler().runTask(instance, () -> {
try {
completeSetup(loadTime);
} catch (Exception e) {
fireCriticalError(e.getMessage(), "");
e.printStackTrace();
}
});
//Bukkit.getScheduler().runTask(instance, () -> {
try {
completeSetup(loadTime);
} catch (Exception e) {
fireCriticalError(e.getMessage(), "");
e.printStackTrace();
}
//});
}
private void completeSetup(long loadTime) {

View File

@ -8,7 +8,6 @@ contributors: ["The BentoBoxWorld Community"]
website: https://bentobox.world
description: ${project.description}
load: STARTUP
loadbefore: [Pladdon, Multiverse-Core, My_Worlds, Residence]