mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-10 08:34:17 +02:00
Clean up last commit
This commit is contained in:
@@ -203,9 +203,13 @@ public class EssentialsEntityListener implements Listener
|
|||||||
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
||||||
public void onEntityShootBow (EntityShootBowEvent event)
|
public void onEntityShootBow (EntityShootBowEvent event)
|
||||||
{
|
{
|
||||||
if (event.getEntity() instanceof Player && ess.getUser(event.getEntity()).isAfk())
|
if (event.getEntity() instanceof Player)
|
||||||
{
|
{
|
||||||
ess.getUser(event.getEntity()).updateActivity(true);
|
final User user = ess.getUser(event.getEntity());
|
||||||
|
if (user.isAfk())
|
||||||
|
{
|
||||||
|
user.updateActivity(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user