mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-20 08:07:57 +01:00
Check for Github issue #238
This commit is contained in:
parent
0562b57ac4
commit
8decd360db
@ -1863,8 +1863,13 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
String msg = Lang.get("questObjectivesTitle");
|
||||
msg = msg.replaceAll("<quest>", q.name);
|
||||
player.sendMessage(ChatColor.GOLD + msg);
|
||||
for (String s : getQuester(player.getUniqueId()).getObjectivesReal(q)) {
|
||||
player.sendMessage(s);
|
||||
try {
|
||||
for (String s : getQuester(player.getUniqueId()).getObjectivesReal(q)) {
|
||||
player.sendMessage(s);
|
||||
}
|
||||
} catch (NullPointerException e) {
|
||||
getLogger().severe("Objectives were null for " + q.name + ". Include quests.yml in Github report");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user