Match quest/action name selection prompts

This commit is contained in:
PikaMug 2019-11-14 02:30:49 -05:00
parent b04bc5d54c
commit 524f48d3fb
3 changed files with 8 additions and 10 deletions

View File

@ -497,8 +497,7 @@ public class QuestFactory implements ConversationAbandonedListener {
} }
public String getQueryText() { public String getQueryText() {
return ChatColor.AQUA + Lang.get("questEditorCreate") + " " + ChatColor.GOLD + "- " return Lang.get("questEditorEnterQuestName");
+ Lang.get("questEditorEnterQuestName");
} }
@Override @Override
@ -507,7 +506,7 @@ public class QuestFactory implements ConversationAbandonedListener {
= new QuestsEditorPostOpenSelectCreatePromptEvent(context); = new QuestsEditorPostOpenSelectCreatePromptEvent(context);
plugin.getServer().getPluginManager().callEvent(event); plugin.getServer().getPluginManager().callEvent(event);
String text = ChatColor.GOLD + getTitle()+ "\n" + getQueryText(); String text = ChatColor.GOLD + getTitle()+ "\n" + ChatColor.YELLOW + getQueryText();
return text; return text;
} }
@ -543,9 +542,9 @@ public class QuestFactory implements ConversationAbandonedListener {
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String s = ChatColor.GOLD + Lang.get("questEditTitle") + "\n"; String s = ChatColor.GOLD + Lang.get("questEditTitle") + "\n";
for (Quest q : plugin.getQuests()) { for (Quest q : plugin.getQuests()) {
s += ChatColor.GRAY + "- " + ChatColor.YELLOW + q.getName() + "\n"; s += ChatColor.GRAY + "- " + ChatColor.AQUA + q.getName() + "\n";
} }
return s + ChatColor.GOLD + Lang.get("questEditorEnterQuestName"); return s + ChatColor.YELLOW + Lang.get("questEditorEnterQuestName");
} }
@Override @Override
@ -945,7 +944,7 @@ public class QuestFactory implements ConversationAbandonedListener {
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.GOLD + Lang.get("questDeleteTitle") + "\n"; String text = ChatColor.GOLD + Lang.get("questDeleteTitle") + "\n";
for (Quest quest : plugin.getQuests()) { for (Quest quest : plugin.getQuests()) {
text += ChatColor.AQUA + quest.getName() + ChatColor.YELLOW + ","; text += ChatColor.AQUA + quest.getName() + ChatColor.GRAY + ",";
} }
text = text.substring(0, text.length() - 1) + "\n"; text = text.substring(0, text.length() - 1) + "\n";
text += ChatColor.YELLOW + Lang.get("questEditorEnterQuestName"); text += ChatColor.YELLOW + Lang.get("questEditorEnterQuestName");

View File

@ -400,7 +400,7 @@ public class ActionFactory implements ConversationAbandonedListener {
@Override @Override
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.AQUA + Lang.get("eventEditorCreate") + ChatColor.GOLD + " - " String text = ChatColor.GOLD + Lang.get("eventEditorCreate") + "\n" + ChatColor.YELLOW
+ Lang.get("eventEditorEnterEventName"); + Lang.get("eventEditorEnterEventName");
return text; return text;
} }
@ -437,7 +437,7 @@ public class ActionFactory implements ConversationAbandonedListener {
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.GOLD + "- " + Lang.get("eventEditorEdit") + " -\n"; String text = ChatColor.GOLD + "- " + Lang.get("eventEditorEdit") + " -\n";
for (Action a : plugin.getActions()) { for (Action a : plugin.getActions()) {
text += ChatColor.AQUA + a.getName() + ChatColor.YELLOW + ", "; text += ChatColor.AQUA + a.getName() + ChatColor.GRAY + ", ";
} }
text = text.substring(0, text.length() - 2) + "\n"; text = text.substring(0, text.length() - 2) + "\n";
text += ChatColor.YELLOW + Lang.get("eventEditorEnterEventName"); text += ChatColor.YELLOW + Lang.get("eventEditorEnterEventName");
@ -562,7 +562,7 @@ public class ActionFactory implements ConversationAbandonedListener {
public String getPromptText(ConversationContext context) { public String getPromptText(ConversationContext context) {
String text = ChatColor.GOLD + "- " + Lang.get("eventEditorDelete") + " -\n"; String text = ChatColor.GOLD + "- " + Lang.get("eventEditorDelete") + " -\n";
for (Action a : plugin.getActions()) { for (Action a : plugin.getActions()) {
text += ChatColor.AQUA + a.getName() + ChatColor.YELLOW + ","; text += ChatColor.AQUA + a.getName() + ChatColor.GRAY + ",";
} }
text = text.substring(0, text.length() - 1) + "\n"; text = text.substring(0, text.length() - 1) + "\n";
text += ChatColor.YELLOW + Lang.get("eventEditorEnterEventName"); text += ChatColor.YELLOW + Lang.get("eventEditorEnterEventName");

View File

@ -49,7 +49,6 @@ COMMAND_QUESTADMIN_REMOVE_HELP: "<command> [player] [quest] - Remove a completed
COMMAND_QUESTADMIN_RELOAD: "reload" COMMAND_QUESTADMIN_RELOAD: "reload"
COMMAND_QUESTADMIN_RELOAD_HELP: "<command> - Safely reload the plugin" COMMAND_QUESTADMIN_RELOAD_HELP: "<command> - Safely reload the plugin"
questEditorHeader: "Create Quest" questEditorHeader: "Create Quest"
questEditorCreate: "Create new Quest"
questEditorEdit: "Edit a Quest" questEditorEdit: "Edit a Quest"
questEditorDelete: "Delete Quest" questEditorDelete: "Delete Quest"
questEditorName: "Set name" questEditorName: "Set name"