mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-15 07:05:51 +01:00
Safety check for Github #240
This commit is contained in:
parent
8decd360db
commit
680112958c
@ -717,8 +717,8 @@ public class PlayerListener implements Listener {
|
||||
}
|
||||
}
|
||||
if (isPlayer) {
|
||||
if (plugin.getQuester(evt.getPlayer().getUniqueId()) != null) {
|
||||
Quester quester = plugin.getQuester(evt.getPlayer().getUniqueId());
|
||||
if (quester != null) {
|
||||
for (Quest quest : quester.currentQuests.keySet()) {
|
||||
if (quester.hasObjective(quest, "reachLocation")) {
|
||||
quester.reachLocation(quest, evt.getTo());
|
||||
|
@ -1868,7 +1868,7 @@ public class Quests extends JavaPlugin implements ConversationAbandonedListener
|
||||
player.sendMessage(s);
|
||||
}
|
||||
} catch (NullPointerException e) {
|
||||
getLogger().severe("Objectives were null for " + q.name + ". Include quests.yml in Github report");
|
||||
getLogger().severe("Objectives were null for " + q.name + ". Include quests.yml in Github #238");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user