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:
parent
d903e57ad6
commit
4a6bf31dff
|
@ -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) {
|
||||
|
|
|
@ -8,7 +8,6 @@ contributors: ["The BentoBoxWorld Community"]
|
|||
website: https://bentobox.world
|
||||
description: ${project.description}
|
||||
|
||||
load: STARTUP
|
||||
|
||||
loadbefore: [Pladdon, Multiverse-Core, My_Worlds, Residence]
|
||||
|
||||
|
|
Loading…
Reference in New Issue