Ignore cooldown after repeat cycle, part 3. Fixes #1244

This commit is contained in:
PikaMug 2020-07-29 22:22:06 -04:00
parent 63e2072c6e
commit 9ca6d7938e

View File

@ -521,12 +521,12 @@ public class Quester {
// If quest is not active, or new period of activity should override player cooldown, inform user
if (!active | (q.getPlanner().getOverride() && completedEnd > 0L
&& currentTime < (completedEnd + repeat))) {
&& currentTime < (completedEnd /*+ repeat*/))) {
if (p.isOnline()) {
final String early = Lang.get("plnTooEarly")
.replace("<quest>", ChatColor.AQUA + q.getName() + ChatColor.YELLOW)
.replace("<time>", ChatColor.DARK_PURPLE
+ MiscUtil.getTime((completedEnd + repeat) - currentTime) + ChatColor.YELLOW);
+ MiscUtil.getTime((completedEnd /*+ repeat*/) - currentTime) + ChatColor.YELLOW);
p.sendMessage(ChatColor.YELLOW + early);
}
return;