summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorementalo <ementalodev@gmx.co.uk>2012-06-25 21:40:22 +0100
committerementalo <ementalodev@gmx.co.uk>2012-06-25 21:40:22 +0100
commit0395b5d222c137b1db664a1f74dd8cca2b4299be (patch)
tree10c04289fe29867b635eb6b3346189eb545863d6
parent3b2523575592da4aa07e3389d81fc10e42ff141e (diff)
downloadEssentials-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.java10
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)
{