22232425262728293031
.getScheduler() .scheduleSyncRepeatingTask(Citizens.plugin, task, Settings.getInt("WizardManaRegenRate"), Settings.getInt("WizardManaRegenRate"))); } else { if ((task = WizardTask.getTask(event.getNPC().getUID())) != null) { task.cancel(); } } } }