This changes the loading to not be on STARTUP

Worlds are then created in onEnable and not one-tick later.
This commit is contained in:
tastybento 2023-10-22 13:37:45 -07:00
parent 5ccaadb2ae
commit 3d81de542d
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]