Hey @meganoth, thanks for your reply!
I've managed to set up wake on Lan and now I've been trying to set up running the server start command (./sdtdserver start) on wake (not boot) and server stop (./sdtdserver stop) on sleep with systemd. I think I'm doing something wrong.
I made a text file in systemd/system-sleep called: pre-suspend.sh.
In the file I put these lines:
#!/bin/bash
if [ "${1}" == "pre" ]; then
./sdtdserver stop
elif [ "${1}" == "post" ]; then
./sdtdserver start
fi
I'm pretty sure I've done this wrong, any help would be great, thanks.