mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 02:35:25 +01:00
Fix issue where island was trying to be loaded before the island manager
This commit is contained in:
parent
8ef2174a3e
commit
4c369b8962
@ -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,8 +130,12 @@ public class SkyBlock extends JavaPlugin {
|
||||
if (fileManager.getConfig(new File(getDataFolder(), "config.yml")).getFileConfiguration()
|
||||
.getBoolean("Island.Stackable.Enable")) {
|
||||
stackableManager = new StackableManager(this);
|
||||
new BukkitRunnable() {
|
||||
public void run() {
|
||||
stackableManager.loadSavedStackables();
|
||||
}
|
||||
}.runTaskLater(this, 5L);
|
||||
}
|
||||
|
||||
leaderboardManager = new LeaderboardManager(this);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user