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() {
return ChatColor.AQUA + Lang.get("questEditorCreate") + " " + ChatColor.GOLD + "- "
+ Lang.get("questEditorEnterQuestName");
return Lang.get("questEditorEnterQuestName");
}
@Override
@ -507,7 +506,7 @@ public class QuestFactory implements ConversationAbandonedListener {
= new QuestsEditorPostOpenSelectCreatePromptEvent(context);
plugin.getServer().getPluginManager().callEvent(event);
String text = ChatColor.GOLD + getTitle()+ "\n" + getQueryText();
String text = ChatColor.GOLD + getTitle()+ "\n" + ChatColor.YELLOW + getQueryText();
return text;
}
@ -543,9 +542,9 @@ public class QuestFactory implements ConversationAbandonedListener {
public String getPromptText(ConversationContext context) {
String s = ChatColor.GOLD + Lang.get("questEditTitle") + "\n";
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
@ -945,7 +944,7 @@ public class QuestFactory implements ConversationAbandonedListener {
public String getPromptText(ConversationContext context) {
String text = ChatColor.GOLD + Lang.get("questDeleteTitle") + "\n";
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 += ChatColor.YELLOW + Lang.get("questEditorEnterQuestName");

View File

@ -400,7 +400,7 @@ public class ActionFactory implements ConversationAbandonedListener {
@Override
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");
return text;
}
@ -437,7 +437,7 @@ public class ActionFactory implements ConversationAbandonedListener {
public String getPromptText(ConversationContext context) {
String text = ChatColor.GOLD + "- " + Lang.get("eventEditorEdit") + " -\n";
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 += ChatColor.YELLOW + Lang.get("eventEditorEnterEventName");
@ -562,7 +562,7 @@ public class ActionFactory implements ConversationAbandonedListener {
public String getPromptText(ConversationContext context) {
String text = ChatColor.GOLD + "- " + Lang.get("eventEditorDelete") + " -\n";
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 += 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_HELP: "<command> - Safely reload the plugin"
questEditorHeader: "Create Quest"
questEditorCreate: "Create new Quest"
questEditorEdit: "Edit a Quest"
questEditorDelete: "Delete Quest"
questEditorName: "Set name"