mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-27 19:47:35 +01:00
Use objectives title for quest fail message
This commit is contained in:
parent
32a0340de7
commit
a8402d56d9
@ -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();
|
||||
|
@ -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:"
|
||||
|
Loading…
Reference in New Issue
Block a user