mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-18 08:35:44 +01:00
Revert "add essentials.keepxp to allow a player to keep their level after death."
This reverts commit 3b25235755
.
This commit is contained in:
parent
3b25235755
commit
0395b5d222
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user