From a4af94f635e510fa1f53ceaeec72309836714464 Mon Sep 17 00:00:00 2001 From: PikaMug Date: Wed, 28 Aug 2019 03:19:10 -0400 Subject: [PATCH] Correct invalid choice message --- main/src/main/java/me/blackvein/quests/Quests.java | 5 ++++- main/src/main/resources/strings.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/me/blackvein/quests/Quests.java b/main/src/main/java/me/blackvein/quests/Quests.java index d16998f3c..d40f069bc 100644 --- a/main/src/main/java/me/blackvein/quests/Quests.java +++ b/main/src/main/java/me/blackvein/quests/Quests.java @@ -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("", Lang.get(player, "yesWord")); + msg.replace("", Lang.get(player, "noWord")); + player.sendMessage(ChatColor.RED + msg); return new QuestPrompt(); } } diff --git a/main/src/main/resources/strings.yml b/main/src/main/resources/strings.yml index 82907aa92..e96dcd69a 100644 --- a/main/src/main/resources/strings.yml +++ b/main/src/main/resources/strings.yml @@ -667,7 +667,7 @@ inputNum: "Input must be a number." inputPosNum: "Input must be a positive number." questModified: "Your active Quest has been modified. You have been forced to quit the Quest." questNotExist: "Your active Quest no longer exists. You have been forced to quit the Quest." -questInvalidChoice: "Invalid choice. Type 'Yes' or 'No'" +questInvalidChoice: "Invalid choice. Type '' or ''" questPointsDisplay: "Quest points:" questNoDrop: "You may not drop Quest items." questNoBrew: "You may not brew Quest items."