From 8f0daba6f1f8c8e36fa95c5c85c111b6a9823bdc Mon Sep 17 00:00:00 2001 From: HappyPikachu Date: Sat, 21 Feb 2015 11:01:55 -0500 Subject: [PATCH] Another possible fix for tickets #4 & #13 --- src/main/java/me/blackvein/quests/PlayerListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/blackvein/quests/PlayerListener.java b/src/main/java/me/blackvein/quests/PlayerListener.java index 59fed4ac5..48b3663bd 100644 --- a/src/main/java/me/blackvein/quests/PlayerListener.java +++ b/src/main/java/me/blackvein/quests/PlayerListener.java @@ -369,7 +369,7 @@ public class PlayerListener implements Listener, ColorUtil { if (quester.currentQuests.isEmpty() == false) { for (Quest quest : quester.currentQuests.keySet()) { - + if (quester.getCurrentStage(quest) != null) if (quester.getCurrentStage(quest).chatEvents.isEmpty() == false) { String chat = evt.getMessage(); @@ -758,7 +758,7 @@ public class PlayerListener implements Listener, ColorUtil { Quester quester = plugin.getQuester(player.getUniqueId()); for (Quest quest : quester.currentQuests.keySet()) { - + if (quester.getCurrentStage(quest) != null) if (quester.getCurrentStage(quest).deathEvent != null) { quester.getCurrentStage(quest).deathEvent.fire(quester, quest); } @@ -840,7 +840,7 @@ public class PlayerListener implements Listener, ColorUtil { } for (Quest quest : quester.currentQuests.keySet()) { - + if (quester.getCurrentStage(quest) != null) if (quester.getCurrentStage(quest).delay > -1) { quester.startStageTimer(quest); @@ -864,7 +864,7 @@ public class PlayerListener implements Listener, ColorUtil { Quester quester = plugin.getQuester(evt.getPlayer().getUniqueId()); for (Quest quest : quester.currentQuests.keySet()) { - + if (quester.getCurrentStage(quest) != null) if (quester.getCurrentStage(quest).delay > -1) { quester.stopStageTimer(quest); }