Skip to content

Commit

Permalink
This changes the loading to not be on STARTUP (#2214)
Browse files Browse the repository at this point in the history
Worlds are then created in onEnable and not one-tick later.
  • Loading branch information
tastybento authored Oct 29, 2023
1 parent d903e57 commit 4a6bf31
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
16 changes: 8 additions & 8 deletions src/main/java/world/bentobox/bentobox/BentoBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ public void onEnable(){

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) {
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ contributors: ["The BentoBoxWorld Community"]
website: https://bentobox.world
description: ${project.description}

load: STARTUP

loadbefore: [Pladdon, Multiverse-Core, My_Worlds, Residence]

Expand Down

0 comments on commit 4a6bf31

Please sign in to comment.