By definition, a server plugin can’t do this on it’s own - it stops when the server does. You’ll need a bit of external software to accomplish restarting AFAIK. You might be able to use Pterodactyl Panel although it does quite a bit more besides. There may be leaner offerings available.