froobynooby / Anti-Villager-Lag

Bukkit plugin for reducing performance impact of villager pathfinding.
GNU General Public License v3.0
12 stars 15 forks source link

Changed addTasks method #2

Closed Rincewind34 closed 5 years ago

Rincewind34 commented 5 years ago

I didn't get the flexibility of the recursive delayed task, to be dependent to the config value. I overworked the "addTasks" method. If you wish to restart the task (when implementing a reload command or something like that) just call the method again in the command execution.