WARNING: The way this is intended to be used is a security risk due to all functions being set to the same level as an OP user.
This data pack is intended to be used on a server with a looped bat file and functions set to level 4 security to allow for an auto restart with only vanilla capabilities.
Set up:
In server.properties set function-permission-level to 4
In the bat file make it a loop by surrounding the Java launch command with
:loop
[YOUR JAVA LAUNCH COMMAND]
goto loop