Merge pull request #1039 from apachezy/patch-1

Fixed "yes" and "no" not being translated for invalid choice
This commit is contained in:
PikaMug 2020-01-11 16:47:23 -05:00 committed by GitHub
commit c001eab944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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