Make console error configurable

This commit is contained in:
HappyPikachu 2017-08-27 22:11:41 -04:00
parent 6fa4329ac7
commit 56517599a2
2 changed files with 4 additions and 3 deletions

View File

@ -1243,11 +1243,11 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
return true; return true;
} }
} else { } else {
cs.sendMessage(ChatColor.YELLOW + "This command may only be performed in-game."); cs.sendMessage(ChatColor.YELLOW + Lang.get("consoleError"));
return true; return true;
} }
} else { } else {
cs.sendMessage(ChatColor.YELLOW + "This command may only be performed in-game."); cs.sendMessage(ChatColor.YELLOW + Lang.get("consoleError"));
return true; return true;
} }
return true; return true;
@ -1621,7 +1621,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
return true; return true;
} }
} else { } else {
cs.sendMessage(ChatColor.YELLOW + "This command may only be performed in-game."); cs.sendMessage(ChatColor.YELLOW + Lang.get("consoleError"));
return true; return true;
} }
return true; return true;

View File

@ -755,6 +755,7 @@ public class Lang {
langMap.put("completed", "Completed"); langMap.put("completed", "Completed");
langMap.put("redoCompleted", "(Completed)"); langMap.put("redoCompleted", "(Completed)");
// //
langMap.put("consoleError", "This command may only be performed in-game.");
langMap.put("invalidSelection", "Invalid selection!"); langMap.put("invalidSelection", "Invalid selection!");
langMap.put("noActiveQuest", "You do not currently have any active Quests."); langMap.put("noActiveQuest", "You do not currently have any active Quests.");
langMap.put("speakTo", "Start: Speak to <npc>"); langMap.put("speakTo", "Start: Speak to <npc>");