use of com.magmaguy.elitemobs.elitedrops.PotionEffectApplier in project EliteMobs by MagmaGuy.
the class EliteMobs method repeatingTaskRunner.
public void repeatingTaskRunner() {
//eggs need to scale with stacked amount
int passiveStackAmount = ConfigValues.defaultConfig.getInt("Passive EliteMob stack amount");
MobScanner mobScanner = new MobScanner(this);
PotionEffectApplier potionEffectApplier = new PotionEffectApplier();
ScoreboardHandler scoreboardHandler = new ScoreboardHandler();
processID = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
public void run() {
mobScanner.scanMobs(passiveStackAmount);
potionEffectApplier.potionEffectApplier();
scoreboardHandler.scanSight();
}
}, 20, 20);
}
Aggregations