From 62a5d2db5c0ff5e96d66d91bfaa6a35ef9a0ef94 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 24 Jan 2013 22:24:07 -0500 Subject: [PATCH] Make sure we ignore cancelled events. --- .../java/com/gmail/nossr50/listeners/HardcoreListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java b/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java index 0766c2713..1541c3fbd 100644 --- a/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/HardcoreListener.java @@ -15,9 +15,9 @@ public class HardcoreListener implements Listener { /** * Monitor PlayerDeath events. * - * @param event The event to monitor + * @param event The event to watch */ - @EventHandler(priority = EventPriority.MONITOR) + @EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true) public void onPlayerDeath(PlayerDeathEvent event) { Player player = event.getEntity();