mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-26 04:36:06 +01:00
Notify player of failed move condition and extend interval to 6 seconds
This commit is contained in:
parent
0d27ec2f14
commit
335360b640
@ -4309,7 +4309,7 @@ public class Quester implements Comparable<Quester> {
|
||||
}
|
||||
hardQuit(quest);
|
||||
} else if (giveReason) {
|
||||
if (System.currentTimeMillis() - lastNotifiedCondition > 5000) {
|
||||
if (System.currentTimeMillis() - lastNotifiedCondition > 6000) {
|
||||
getPlayer().sendMessage(ChatColor.YELLOW + Lang.get(getPlayer(), "conditionFailRetry")
|
||||
.replace("<quest>", quest.getName()));
|
||||
lastNotifiedCondition = System.currentTimeMillis();
|
||||
|
@ -948,7 +948,7 @@ public class PlayerListener implements Listener {
|
||||
final ObjectiveType type = ObjectiveType.REACH_LOCATION;
|
||||
final Set<String> dispatchedQuestIDs = new HashSet<String>();
|
||||
for (final Quest quest : plugin.getQuests()) {
|
||||
if (!quester.meetsCondition(quest, false)) {
|
||||
if (!quester.meetsCondition(quest, true)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user