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;
|
final long loadTime = System.currentTimeMillis() - loadStart;
|
||||||
|
|
||||||
Bukkit.getScheduler().runTask(instance, () -> {
|
//Bukkit.getScheduler().runTask(instance, () -> {
|
||||||
try {
|
try {
|
||||||
completeSetup(loadTime);
|
completeSetup(loadTime);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
fireCriticalError(e.getMessage(), "");
|
fireCriticalError(e.getMessage(), "");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
});
|
//});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void completeSetup(long loadTime) {
|
private void completeSetup(long loadTime) {
|
||||||
|
|
|
@ -8,7 +8,6 @@ contributors: ["The BentoBoxWorld Community"]
|
||||||
website: https://bentobox.world
|
website: https://bentobox.world
|
||||||
description: ${project.description}
|
description: ${project.description}
|
||||||
|
|
||||||
load: STARTUP
|
|
||||||
|
|
||||||
loadbefore: [Pladdon, Multiverse-Core, My_Worlds, Residence]
|
loadbefore: [Pladdon, Multiverse-Core, My_Worlds, Residence]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue