Notify player of failed move condition and extend interval to 6 seconds

This commit is contained in:
PikaMug 2021-02-04 02:57:44 -05:00
parent 0d27ec2f14
commit 335360b640
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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;
}