Fix issue where island was trying to be loaded before the island manager

This commit is contained in:
Esophose 2019-02-23 20:39:05 -07:00
parent 8ef2174a3e
commit 4c369b8962

View File

@ -9,6 +9,7 @@ import org.bukkit.event.HandlerList;
import org.bukkit.generator.ChunkGenerator;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;
import me.goodandevil.skyblock.api.SkyBlockAPI;
import me.goodandevil.skyblock.ban.BanManager;
@ -129,7 +130,11 @@ public class SkyBlock extends JavaPlugin {
if (fileManager.getConfig(new File(getDataFolder(), "config.yml")).getFileConfiguration()
.getBoolean("Island.Stackable.Enable")) {
stackableManager = new StackableManager(this);
stackableManager.loadSavedStackables();
new BukkitRunnable() {
public void run() {
stackableManager.loadSavedStackables();
}
}.runTaskLater(this, 5L);
}
leaderboardManager = new LeaderboardManager(this);