Automatic Player Screenshot

I saw on some servers they have a automatic screenshot script running so it randomly screen grabs a user. It great to just watch and try to prevent modding from the start. Does anyone know how to do this?

Screenshot-Basic would be a good starting point.

I have screenshot-basic is our server already with easyadmin. I don’t know how to make it do it automatically tho… We can manually get screenshots but some servers have it so it just goes though and screengrabs at random intervals