mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-23 11:05:38 +01:00
Ignore cooldown after repeat cycle, part 3. Fixes #1244
This commit is contained in:
parent
63e2072c6e
commit
9ca6d7938e
@ -521,12 +521,12 @@ public class Quester {
|
|||||||
|
|
||||||
// If quest is not active, or new period of activity should override player cooldown, inform user
|
// If quest is not active, or new period of activity should override player cooldown, inform user
|
||||||
if (!active | (q.getPlanner().getOverride() && completedEnd > 0L
|
if (!active | (q.getPlanner().getOverride() && completedEnd > 0L
|
||||||
&& currentTime < (completedEnd + repeat))) {
|
&& currentTime < (completedEnd /*+ repeat*/))) {
|
||||||
if (p.isOnline()) {
|
if (p.isOnline()) {
|
||||||
final String early = Lang.get("plnTooEarly")
|
final String early = Lang.get("plnTooEarly")
|
||||||
.replace("<quest>", ChatColor.AQUA + q.getName() + ChatColor.YELLOW)
|
.replace("<quest>", ChatColor.AQUA + q.getName() + ChatColor.YELLOW)
|
||||||
.replace("<time>", ChatColor.DARK_PURPLE
|
.replace("<time>", ChatColor.DARK_PURPLE
|
||||||
+ MiscUtil.getTime((completedEnd + repeat) - currentTime) + ChatColor.YELLOW);
|
+ MiscUtil.getTime((completedEnd /*+ repeat*/) - currentTime) + ChatColor.YELLOW);
|
||||||
p.sendMessage(ChatColor.YELLOW + early);
|
p.sendMessage(ChatColor.YELLOW + early);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user