Make sure we ignore cancelled events.

This commit is contained in:
GJ 2013-01-24 22:24:07 -05:00
parent 96d59a2e81
commit 62a5d2db5c

View File

@ -15,9 +15,9 @@ public class HardcoreListener implements Listener {
/** /**
* Monitor PlayerDeath events. * 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) { public void onPlayerDeath(PlayerDeathEvent event) {
Player player = event.getEntity(); Player player = event.getEntity();