public void updateAfkStatus(){
  purgeNotOnline();
  final AFKConfig config=aca.getNodeOrDefault();
  long afkTime=config.getAfkTime();
  long afkTimeKick=config.getAfkTimeToKick();
  Instant now=Instant.now();
  CommandPermissionHandler cph=getPermissionUtil();
  if (afkTime > 0) {
    workOnAfkPlayers(now.minus(afkTime,ChronoUnit.SECONDS),cph,exempttoggle,null,null);
  }
  if (afkTimeKick > 0) {
    workOnAfkPlayers(now.minus(afkTimeKick,ChronoUnit.SECONDS),cph,exemptkick,null,null);
  }
}

public void updateAfkStatus ( ) { purgeNotOnline ( ) ; final AFKConfig config = aca . getNodeOrDefault ( ) ; long afkTime = config . getAfkTime ( ) ; long afkTimeKick = config . getAfkTimeToKick ( ) ; Instant now = Instant . now ( ) ; CommandPermissionHandler cph = getPermissionUtil ( ) ; if ( afkTime > 0 ) { workOnAfkPlayers ( now . minus ( afkTime , ChronoUnit . SECONDS ) , cph , exempttoggle , null , null ) ; } if ( afkTimeKick > 0 ) { workOnAfkPlayers ( now . minus ( afkTimeKick , ChronoUnit . SECONDS ) , cph , exemptkick , null , null ) ; } }
updates all players ' afk status if they are inactive .
