Exemple #1
0
 public void cancelProtectionRegenTasks() {
   for (ProtectionRegenTask task : protectionRegenTasks.values()) {
     plugin.getServer().getScheduler().cancelTask(task.getTaskId());
     task.replaceProtections();
   }
   protectionRegenTasks.clear();
   protectionPlaceholders.clear();
 }
Exemple #2
0
 public void removeProtectionRegenTask(ProtectionRegenTask task) {
   protectionRegenTasks.remove(task.getBlockLocation());
   if (protectionRegenTasks.isEmpty()) protectionPlaceholders.clear();
 }
Exemple #3
0
 public void addProtectionRegenTask(ProtectionRegenTask task) {
   protectionRegenTasks.put(task.getBlockLocation(), task);
 }