mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-29 09:56:12 +00:00
Clean up last commit
This commit is contained in:
parent
5e360995eb
commit
4629cad99b
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue