Journal message for no accepted quests, fixes #21

This commit is contained in:
HappyPikachu 2015-02-18 13:47:57 -05:00
parent 6293ff4282
commit efd161e97f
2 changed files with 6 additions and 2 deletions

View File

@ -257,8 +257,11 @@ public class Quester {
book.setTitle(ChatColor.LIGHT_PURPLE + Lang.get("journalTitle")); book.setTitle(ChatColor.LIGHT_PURPLE + Lang.get("journalTitle"));
book.setAuthor(getPlayer().getName()); book.setAuthor(getPlayer().getName());
if(currentQuests.isEmpty()) {
if(currentQuests.isEmpty() == false) { book.addPage(ChatColor.DARK_RED + Lang.get("journalNoQuests"));
} else {
int currentLength = 0; int currentLength = 0;
int currentLines = 0; int currentLines = 0;

View File

@ -945,6 +945,7 @@ public class Lang {
langMap.put("journalPutAway", "You put away your Quest Journal."); langMap.put("journalPutAway", "You put away your Quest Journal.");
langMap.put("journalAlreadyHave", "You already have your Quest Journal out."); langMap.put("journalAlreadyHave", "You already have your Quest Journal out.");
langMap.put("journalNoRoom", "You have no room in your inventory for your Quest Journal!"); langMap.put("journalNoRoom", "You have no room in your inventory for your Quest Journal!");
langMap.put("journalNoQuests", "You have no accepted quests!");
// //
// //