mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-13 22:25:50 +01:00
Iterate all block start at single location until available, fixes #1626
This commit is contained in:
parent
db9d64732f
commit
4a9c2e898b
@ -335,14 +335,14 @@ public class PlayerListener implements Listener {
|
||||
+ MiscUtil.getTime(quester.getCooldownDifference(q))
|
||||
+ ChatColor.YELLOW);
|
||||
player.sendMessage(ChatColor.YELLOW + early);
|
||||
return;
|
||||
continue;
|
||||
} else if (quester.getCompletedQuests().contains(q)
|
||||
&& q.getPlanner().getCooldown() < 0) {
|
||||
String completed = Lang.get(player, "questAlreadyCompleted");
|
||||
completed = completed.replace("<quest>", ChatColor.AQUA
|
||||
+ q.getName() + ChatColor.YELLOW);
|
||||
player.sendMessage(ChatColor.YELLOW + completed);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
quester.setQuestIdToTake(q.getId());
|
||||
@ -358,8 +358,8 @@ public class PlayerListener implements Listener {
|
||||
}
|
||||
plugin.getConversationFactory().buildConversation(player).begin();
|
||||
}
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user