Use objectives title for quest fail message

This commit is contained in:
BuildTools 2019-03-04 20:09:44 -05:00
parent 32a0340de7
commit a8402d56d9
2 changed files with 1 additions and 4 deletions

View File

@ -718,9 +718,7 @@ public class Quest {
public void failQuest(Quester q) {
if (plugin.getServer().getPlayer(q.getUUID()) != null) {
Player player = plugin.getServer().getPlayer(q.getUUID());
String title = Lang.get(player, "questTitle");
title = title.replace("<quest>", ChatColor.DARK_PURPLE + name + ChatColor.AQUA);
player.sendMessage(ChatColor.AQUA + title);
player.sendMessage(Lang.get(player, "questObjectivesTitle").replace("<quest>", name));
player.sendMessage(ChatColor.RED + Lang.get(player, "questFailed"));
q.hardQuit(this);
q.saveData();

View File

@ -574,7 +574,6 @@ dateCreateEnterSecond: "Enter a second (max. 59), <cancel>"
dateCreateEnterOffset: "Enter a UTC time offset (max. 14), <cancel>"
dateCreateEnterZone: "Enter a UTC time zone, <cancel>"
dateCreateNoYearAmount: "You must set a year first!"
questTitle: "-- <quest> --"
questObjectivesTitle: "---(<quest>)---"
questCompleteTitle: '**QUEST COMPLETE: <quest>**'
questRewardsTitle: "Rewards:"