mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-14 20:21:50 +01:00
Update afk status on block interact
This commit is contained in:
parent
61903355cd
commit
61c4d8cb5e
@ -417,6 +417,7 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
if (event.getItem() != null && event.getItem().getTypeId() != AIR)
|
if (event.getItem() != null && event.getItem().getTypeId() != AIR)
|
||||||
{
|
{
|
||||||
final User user = ess.getUser(event.getPlayer());
|
final User user = ess.getUser(event.getPlayer());
|
||||||
|
user.updateActivity(true);
|
||||||
if (user.hasPowerTools() && user.arePowerToolsEnabled() && usePowertools(user, event.getItem().getTypeId()))
|
if (user.hasPowerTools() && user.arePowerToolsEnabled() && usePowertools(user, event.getItem().getTypeId()))
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user