mirror of
https://github.com/PikaMug/Quests.git
synced 2024-12-11 12:04:09 +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) {
|
||||
Quester quester = plugin.getQuester(evt.getPlayer().getUniqueId());
|
||||
if (quester != null) {
|
||||
if (plugin.getQuester(evt.getPlayer().getUniqueId()) != null) {
|
||||
Quester quester = plugin.getQuester(evt.getPlayer().getUniqueId());
|
||||
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