From 0395b5d222c137b1db664a1f74dd8cca2b4299be Mon Sep 17 00:00:00 2001 From: ementalo Date: Mon, 25 Jun 2012 21:40:22 +0100 Subject: [PATCH] Revert "add essentials.keepxp to allow a player to keep their level after death." This reverts commit 3b2523575592da4aa07e3389d81fc10e42ff141e. --- .../earth2me/essentials/EssentialsEntityListener.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java b/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java index 82745780d..19cfde0f4 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java @@ -118,15 +118,7 @@ public class EssentialsEntityListener implements Listener event.setDeathMessage(""); } } - @EventHandler(priority = EventPriority.LOW) - public void onPlayerDeathExpEvent(final PlayerDeathEvent event) - { - final User user = ess.getUser(event.getEntity()); - if (user.isAuthorized("essentials.keepxp")) - { - event.setKeepLevel(true); - } - } + @EventHandler(priority = EventPriority.LOW, ignoreCancelled = true) public void onFoodLevelChange(final FoodLevelChangeEvent event) {