diff options
author | ementalo <ementalodev@gmx.co.uk> | 2012-06-25 21:40:22 +0100 |
---|---|---|
committer | ementalo <ementalodev@gmx.co.uk> | 2012-06-25 21:40:22 +0100 |
commit | 0395b5d222c137b1db664a1f74dd8cca2b4299be (patch) | |
tree | 10c04289fe29867b635eb6b3346189eb545863d6 | |
parent | 3b2523575592da4aa07e3389d81fc10e42ff141e (diff) | |
download | Essentials-0395b5d222c137b1db664a1f74dd8cca2b4299be.tar Essentials-0395b5d222c137b1db664a1f74dd8cca2b4299be.tar.gz Essentials-0395b5d222c137b1db664a1f74dd8cca2b4299be.tar.lz Essentials-0395b5d222c137b1db664a1f74dd8cca2b4299be.tar.xz Essentials-0395b5d222c137b1db664a1f74dd8cca2b4299be.zip |
Revert "add essentials.keepxp to allow a player to keep their level after death."
This reverts commit 3b2523575592da4aa07e3389d81fc10e42ff141e.
-rw-r--r-- | Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java | 10 |
1 files changed, 1 insertions, 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) { |