if (event.isToggledOn()) {
int delay = healer.getHealthRegenRate();
task.addID(Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(Citizens.plugin, task, delay, delay));
} else {
if ((task = HealerTask.getTask(event.getNPC().getUID())) != null) {
task.cancel();
}
}
}
}