Correct invalid choice message

This commit is contained in:
PikaMug 2019-08-28 03:19:10 -04:00
parent ceb932ec0b
commit a4af94f635
2 changed files with 5 additions and 2 deletions

View File

@ -374,7 +374,10 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
player.sendMessage(ChatColor.YELLOW + Lang.get("cancelled"));
return Prompt.END_OF_CONVERSATION;
} else {
player.sendMessage(ChatColor.RED + Lang.get("questInvalidChoice"));
String msg = Lang.get("questInvalidChoice");
msg.replace("<yes>", Lang.get(player, "yesWord"));
msg.replace("<no>", Lang.get(player, "noWord"));
player.sendMessage(ChatColor.RED + msg);
return new QuestPrompt();
}
}

View File

@ -667,7 +667,7 @@ inputNum: "Input must be a number."
inputPosNum: "Input must be a positive number."
questModified: "Your active Quest <quest> has been modified. You have been forced to quit the Quest."
questNotExist: "Your active Quest <quest> no longer exists. You have been forced to quit the Quest."
questInvalidChoice: "Invalid choice. Type 'Yes' or 'No'"
questInvalidChoice: "Invalid choice. Type '<yes>' or '<no>'"
questPointsDisplay: "Quest points:"
questNoDrop: "You may not drop Quest items."
questNoBrew: "You may not brew Quest items."