Skip to content

Commit

Permalink
Merge pull request #6343 from TownyAdvanced/fix/world-revert-delay
Browse files Browse the repository at this point in the history
Use the world's wild revert delay
  • Loading branch information
LlmDl authored Nov 28, 2022
2 parents 9dcca9c + 8d234d2 commit f6594cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/palmergames/bukkit/towny/regen/TownyRegenAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ public static boolean beginProtectionRegenTask(Block block, int count, TownyWorl
block = baseBlock;
}
ProtectionRegenTask task = new ProtectionRegenTask(Towny.getPlugin(), block);
task.setTaskId(Towny.getPlugin().getServer().getScheduler().scheduleSyncDelayedTask(Towny.getPlugin(), task, (TownySettings.getPlotManagementWildRegenDelay() + count) * 20));
task.setTaskId(Towny.getPlugin().getServer().getScheduler().scheduleSyncDelayedTask(Towny.getPlugin(), task, (world.getPlotManagementWildRevertDelay() + count) * 20));
addProtectionRegenTask(task);

// If this was a TownyExplodingBlocksEvent we want to get the bukkit event from it first.
Expand Down

0 comments on commit f6594cb

Please sign in to comment.