Set the OreAlert task to run every tick. (#17)

up
Joey Hines 2019-11-04 17:59:48 +01:00 committed by Gitea
parent 33953fd989
commit e64f2119c5
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public class MinecraftManager extends JavaPlugin implements IMinecraftManager {
getServer().getPluginManager().registerEvents(commandPreprocessListener, this); getServer().getPluginManager().registerEvents(commandPreprocessListener, this);
oreAlert = new OreAlert(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."); Bukkit.getConsoleSender().sendMessage("MinecraftManager has started successfully.");
} }