Bukkit.getScheduler().runTaskLater(plugin, () -> { // code }, 20L); // amount to wait in ticks , 20 ticks = 1 second