From 56517599a2c7b41ae564ce195a04cd5f87e17259 Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Sun, 27 Aug 2017 22:11:41 -0400 Subject: [PATCH] Make console error configurable --- src/main/java/me/blackvein/quests/Quests.java | 6 +++--- src/main/java/me/blackvein/quests/util/Lang.java | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/blackvein/quests/Quests.java b/src/main/java/me/blackvein/quests/Quests.java index f5dff3ec7..c9c98da7a 100644 --- a/src/main/java/me/blackvein/quests/Quests.java +++ b/src/main/java/me/blackvein/quests/Quests.java @@ -1243,11 +1243,11 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener return true; } } else { - cs.sendMessage(ChatColor.YELLOW + "This command may only be performed in-game."); + cs.sendMessage(ChatColor.YELLOW + Lang.get("consoleError")); return true; } } else { - cs.sendMessage(ChatColor.YELLOW + "This command may only be performed in-game."); + cs.sendMessage(ChatColor.YELLOW + Lang.get("consoleError")); return true; } return true; @@ -1621,7 +1621,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener return true; } } else { - cs.sendMessage(ChatColor.YELLOW + "This command may only be performed in-game."); + cs.sendMessage(ChatColor.YELLOW + Lang.get("consoleError")); return true; } return true; diff --git a/src/main/java/me/blackvein/quests/util/Lang.java b/src/main/java/me/blackvein/quests/util/Lang.java index bb4bd3a40..ed082041e 100644 --- a/src/main/java/me/blackvein/quests/util/Lang.java +++ b/src/main/java/me/blackvein/quests/util/Lang.java @@ -755,6 +755,7 @@ public class Lang { langMap.put("completed", "Completed"); langMap.put("redoCompleted", "(Completed)"); // + langMap.put("consoleError", "This command may only be performed in-game."); langMap.put("invalidSelection", "Invalid selection!"); langMap.put("noActiveQuest", "You do not currently have any active Quests."); langMap.put("speakTo", "Start: Speak to ");