diff options
-rw-r--r-- | Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java | 1 | ||||
-rw-r--r-- | Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java b/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java index 083fa1687..063a9d61b 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsEntityListener.java @@ -34,6 +34,7 @@ public class EssentialsEntityListener extends EntityListener { User defender = ess.getUser(eDefend); User attacker = ess.getUser(eAttack); + attacker.updateActivity(true); ItemStack is = attacker.getItemInHand(); List<String> commandList = attacker.getPowertool(is); if (commandList != null && !commandList.isEmpty()) diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java index 9147acaf0..3205d4d91 100644 --- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java +++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java @@ -319,6 +319,8 @@ public class EssentialsPlayerListener extends PlayerListener @Override public void onPlayerAnimation(final PlayerAnimationEvent event) { + final User user = ess.getUser(event.getPlayer()); + user.updateActivity(true); usePowertools(event); } |