diff --git a/src/main/java/com/songoda/skyblock/island/IslandManager.java b/src/main/java/com/songoda/skyblock/island/IslandManager.java index c92ba7eb..0480bb92 100644 --- a/src/main/java/com/songoda/skyblock/island/IslandManager.java +++ b/src/main/java/com/songoda/skyblock/island/IslandManager.java @@ -275,12 +275,14 @@ public class IslandManager { Bukkit.getServer().getScheduler().runTaskLater(plugin, () -> plugin.getBiomeManager().setBiome(island, IslandWorld.Normal, compatibleBiome, () -> { - if (structure.getCommands() != null) { - for (String commandList : structure.getCommands()) { - Bukkit.getServer().dispatchCommand(Bukkit.getServer().getConsoleSender(), commandList.replace("%player", player.getName())); - } - } - }), 20L); + if (structure.getCommands() != null) { + Bukkit.getScheduler().scheduleSyncDelayedTask(plugin, () -> { + for (String commandList : structure.getCommands()) { + Bukkit.getServer().dispatchCommand(Bukkit.getServer().getConsoleSender(), commandList.replace("%player", player.getName())); + } + }); + } + }), 20L); // Recalculate island level after 5 seconds if (configLoad.getBoolean("Island.Levelling.ScanAutomatically"))