Stopping server if there have been no users in a certain period of time

Just curious if something like this is possible. I know I can make a schedule where the total uptime is checked and stops the server, but it seems like there can’t be conditional checks like waiting a certain period of time? Ultimately what I would want is:

  • AMP checks how long it’s been since a user was in the server
  • If there have been no users in the server for 3 days, AMP stops the server and updates it.

Is that possible with current scheduling triggers/tasks and I am just missing it?