mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-03 17:29:57 +01:00
Display objective overrides when taking quest, fixes #730
This commit is contained in:
parent
0137eedec8
commit
3a6637c38c
@ -623,6 +623,14 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public void showObjectives(Quest quest, Quester quester, boolean ignoreOverrides) {
|
||||
if (!ignoreOverrides) {
|
||||
if (quester.getCurrentStage(quest) != null) {
|
||||
if (quester.getCurrentStage(quest).objectiveOverride != null) {
|
||||
quester.getPlayer().sendMessage(ChatColor.GREEN + quester.getCurrentStage(quest).objectiveOverride);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (quester.getQuestData(quest) == null) {
|
||||
getLogger().warning("Quest data was null when showing objectives for " + quest.getName());
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user