Update afk status on block interact

This commit is contained in:
KHobbits 2012-12-03 09:08:56 +00:00
parent 61903355cd
commit 61c4d8cb5e

View File

@ -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);