From 109fd75dbde200a1f9428e0099c2ab5cc6e181f8 Mon Sep 17 00:00:00 2001 From: Brianna Date: Wed, 4 Dec 2019 16:44:13 -0500 Subject: [PATCH] Wait for other plugins to load before loading levels. --- src/main/java/com/songoda/epichoppers/EpicHoppers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/epichoppers/EpicHoppers.java b/src/main/java/com/songoda/epichoppers/EpicHoppers.java index 14d347e..82f79ce 100644 --- a/src/main/java/com/songoda/epichoppers/EpicHoppers.java +++ b/src/main/java/com/songoda/epichoppers/EpicHoppers.java @@ -108,7 +108,6 @@ public class EpicHoppers extends SongodaPlugin { this.playerDataManager = new PlayerDataManager(); this.boostManager = new BoostManager(); - this.loadLevelManager(); this.checkStorage(); // Load from file @@ -172,6 +171,7 @@ public class EpicHoppers extends SongodaPlugin { * Register hoppers into HopperManger from configuration */ Bukkit.getScheduler().runTaskLater(this, () -> { + this.loadLevelManager(); if (storage.containsGroup("sync")) { for (StorageRow row : storage.getRowsByGroup("sync")) { Location location = Methods.unserializeLocation(row.getKey());