is it possible to have the plugin protect bases of users that are online AND bases of offline users for 24hr?

Basically, i want bases to only be vulnerable if players have not been online for 24hrs or longer.

Thanks!