From c63de278fed51b113ee23f3794be4a1ea6efc6a6 Mon Sep 17 00:00:00 2001 From: tastybento Date: Fri, 10 Nov 2023 10:54:30 -0800 Subject: [PATCH] Revert "This changes the loading to not be on STARTUP (#2214)" This reverts commit 4a6bf31dffb47f7009af831575ac9a35d5f68acb. --- .../java/world/bentobox/bentobox/BentoBox.java | 16 ++++++++-------- src/main/resources/plugin.yml | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/BentoBox.java b/src/main/java/world/bentobox/bentobox/BentoBox.java index 5cb55a986..60cbc2fe8 100644 --- a/src/main/java/world/bentobox/bentobox/BentoBox.java +++ b/src/main/java/world/bentobox/bentobox/BentoBox.java @@ -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) { diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index cb7a97599..ac15aa754 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -8,6 +8,7 @@ contributors: ["The BentoBoxWorld Community"] website: https://bentobox.world description: ${project.description} +load: STARTUP loadbefore: [Pladdon, Multiverse-Core, My_Worlds, Residence]