From 5a12723428b42fa18556b69ffbcaf380722985fd Mon Sep 17 00:00:00 2001 From: PikaMug Date: Mon, 5 Aug 2019 13:33:02 -0400 Subject: [PATCH] Update installed strings --- main/src/main/java/me/blackvein/quests/QuestFactory.java | 6 +++--- .../java/me/blackvein/quests/prompts/CreateStagePrompt.java | 2 +- main/src/main/resources/strings.yml | 6 ++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/main/src/main/java/me/blackvein/quests/QuestFactory.java b/main/src/main/java/me/blackvein/quests/QuestFactory.java index e621aa987..3cf8e5121 100644 --- a/main/src/main/java/me/blackvein/quests/QuestFactory.java +++ b/main/src/main/java/me/blackvein/quests/QuestFactory.java @@ -210,7 +210,7 @@ public class QuestFactory implements ConversationAbandonedListener { } else if (plugin.getDependencies().getCitizens() != null) { text += ChatColor.BLUE + "" + ChatColor.BOLD + "4" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("questEditorNPCStart") + " (" + CitizensAPI.getNPCRegistry().getById((Integer) context.getSessionData(CK.Q_START_NPC)).getName() + ")\n"; } else { - text += ChatColor.BLUE + "" + ChatColor.BOLD + "4" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("questEditorNPCStart") + " (" + Lang.get("questCitNotInstalled") + ")\n"; + text += ChatColor.BLUE + "" + ChatColor.BOLD + "4" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("questEditorNPCStart") + " (" + Lang.get("notInstalled") + ")\n"; } if (context.getSessionData(CK.Q_START_BLOCK) == null) { text += ChatColor.BLUE + "" + ChatColor.BOLD + "5" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("questEditorBlockStart") + ChatColor.GRAY + " (" + Lang.get("noneSet") + ")\n"; @@ -226,7 +226,7 @@ public class QuestFactory implements ConversationAbandonedListener { text += ChatColor.BLUE + "" + ChatColor.BOLD + "6" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("questWGSetRegion") + " (" + ChatColor.GREEN + s + ChatColor.YELLOW + ")\n"; } } else { - text += ChatColor.GRAY + "" + ChatColor.BOLD + "6" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("questWGSetRegion") + " (" + Lang.get("questWGNotInstalled") + ")\n"; + text += ChatColor.GRAY + "" + ChatColor.BOLD + "6" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("questWGSetRegion") + " (" + Lang.get("notInstalled") + ")\n"; } if (context.getSessionData(CK.Q_INITIAL_EVENT) == null) { text += ChatColor.BLUE + "" + ChatColor.BOLD + "7" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("questEditorInitialEvent") + ChatColor.GRAY + " (" + Lang.get("noneSet") + ")\n"; @@ -240,7 +240,7 @@ public class QuestFactory implements ConversationAbandonedListener { ItemStack stack = (ItemStack) context.getSessionData(CK.Q_GUIDISPLAY); text += ChatColor.BLUE + "" + ChatColor.BOLD + "8" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("questEditorSetGUI") + " (" + ItemUtil.getDisplayString(stack) + ChatColor.RESET + ChatColor.YELLOW + ")\n"; } else { - text += ChatColor.GRAY + "" + ChatColor.BOLD + "8" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("questEditorSetGUI") + " (" + Lang.get("questCitNotInstalled") + ")\n"; + text += ChatColor.GRAY + "" + ChatColor.BOLD + "8" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("questEditorSetGUI") + " (" + Lang.get("notInstalled") + ")\n"; } text += ChatColor.BLUE + "" + ChatColor.BOLD + "9" + ChatColor.RESET + ChatColor.DARK_AQUA + " - " + Lang.get("questEditorReqs") + "\n"; text += ChatColor.BLUE + "" + ChatColor.BOLD + "10" + ChatColor.RESET + ChatColor.AQUA + " - " + Lang.get("questEditorPln") + "\n"; diff --git a/main/src/main/java/me/blackvein/quests/prompts/CreateStagePrompt.java b/main/src/main/java/me/blackvein/quests/prompts/CreateStagePrompt.java index 6d731d584..d28e97cc3 100644 --- a/main/src/main/java/me/blackvein/quests/prompts/CreateStagePrompt.java +++ b/main/src/main/java/me/blackvein/quests/prompts/CreateStagePrompt.java @@ -151,7 +151,7 @@ public class CreateStagePrompt extends FixedSetPrompt { text += ChatColor.BLUE + "" + ChatColor.BOLD + "11" + ChatColor.RESET + ChatColor.YELLOW + " - " + Lang.get("stageEditorDelayMessage") + ChatColor.GRAY + " (" + ChatColor.AQUA + "\"" + context.getSessionData(pref + CK.S_DELAY_MESSAGE) + "\"" + ChatColor.GRAY + ")\n"; } if (plugin.getDependencies().getDenizenAPI() == null) { - text += ChatColor.GRAY + "" + ChatColor.BOLD + "12" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("stageEditorDenizenScript") + ChatColor.GRAY + " (" + Lang.get("questDenNotInstalled") + ")\n"; + text += ChatColor.GRAY + "" + ChatColor.BOLD + "12" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("stageEditorDenizenScript") + ChatColor.GRAY + " (" + Lang.get("notInstalled") + ")\n"; } else { if (!hasObjective) { text += ChatColor.GRAY + "" + ChatColor.BOLD + "12" + ChatColor.RESET + ChatColor.GRAY + " - " + Lang.get("stageEditorDenizenScript") + ChatColor.GRAY + " (" + Lang.get("stageEditorOptional") + ")\n"; diff --git a/main/src/main/resources/strings.yml b/main/src/main/resources/strings.yml index 2b9ca8046..06e7b846d 100644 --- a/main/src/main/resources/strings.yml +++ b/main/src/main/resources/strings.yml @@ -87,12 +87,9 @@ questPartiesJoin: "You can now perform quests with ." questPartiesKicked: " can no longer perform quests with you." questPartiesLeave: "You can no longer perform quests with ." questWGSetRegion: "Set Region" -questWGNotInstalled: "WorldGuard not installed" questWGPrompt: "Enter WorldGuard region, , " questWGInvalidRegion: " is not a valid WorldGuard region!" questWGRegionCleared: "Quest region cleared." -questCitNotInstalled: "Citizens not installed" -questDenNotInstalled: "Denizen not installed" questGUIError: "Error: That item is already being used as the GUI Display for the Quest ." questCurrentItem: "Current item:" questSetItem: "Set Item" @@ -856,4 +853,5 @@ questErrorReadingFile: "Error reading Quests file." questSaveError: "An error occurred while saving." noPermission: "You do not have permission to do that." duplicateEditor: "You are already using an editor!" -difference: "The difference is ''." \ No newline at end of file +difference: "The difference is ''." +notInstalled: "Not installed" \ No newline at end of file