From e64f2119c56aaf73996e8ffd8ea2d26d547de0bb Mon Sep 17 00:00:00 2001 From: ZeroHD Date: Mon, 4 Nov 2019 17:59:48 +0100 Subject: [PATCH] Set the OreAlert task to run every tick. (#17) --- .../java/xyz/etztech/minecraftmanager/MinecraftManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/xyz/etztech/minecraftmanager/MinecraftManager.java b/src/main/java/xyz/etztech/minecraftmanager/MinecraftManager.java index 20f3cbe..dda1169 100644 --- a/src/main/java/xyz/etztech/minecraftmanager/MinecraftManager.java +++ b/src/main/java/xyz/etztech/minecraftmanager/MinecraftManager.java @@ -89,7 +89,7 @@ public class MinecraftManager extends JavaPlugin implements IMinecraftManager { getServer().getPluginManager().registerEvents(commandPreprocessListener, this); oreAlert = new OreAlert(this); - Bukkit.getScheduler().runTaskTimer(this, () -> oreAlert.monitor(), 0, 20); + Bukkit.getScheduler().runTaskTimer(this, () -> oreAlert.monitor(), 0, 1); Bukkit.getConsoleSender().sendMessage("MinecraftManager has started successfully."); }