summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2012-12-03 09:08:56 +0000
committerKHobbits <rob@khobbits.co.uk>2012-12-03 09:08:56 +0000
commit61c4d8cb5e43fd07ba6fac4cb859539a61cf5035 (patch)
treef003e08387cf968b3744d424811fafebc2b9ffbc
parent61903355cd4817055ab2144097284ccac0861664 (diff)
downloadEssentials-61c4d8cb5e43fd07ba6fac4cb859539a61cf5035.tar
Essentials-61c4d8cb5e43fd07ba6fac4cb859539a61cf5035.tar.gz
Essentials-61c4d8cb5e43fd07ba6fac4cb859539a61cf5035.tar.lz
Essentials-61c4d8cb5e43fd07ba6fac4cb859539a61cf5035.tar.xz
Essentials-61c4d8cb5e43fd07ba6fac4cb859539a61cf5035.zip
Update afk status on block interact
-rw-r--r--Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
index d182c5656..56098832e 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsPlayerListener.java
@@ -417,6 +417,7 @@ public class EssentialsPlayerListener implements Listener
if (event.getItem() != null && event.getItem().getTypeId() != AIR)
{
final User user = ess.getUser(event.getPlayer());
+ user.updateActivity(true);
if (user.hasPowerTools() && user.arePowerToolsEnabled() && usePowertools(user, event.getItem().getTypeId()))
{
event.setCancelled(true);