added killer

This commit is contained in:
Expand 2023-12-17 04:07:41 +11:00
parent 40580ecc47
commit 4bdec181ab

View file

@ -39,6 +39,7 @@ module.exports = {
channelSend(`Server offline for ~${serverofflinefor}`)
if(serverofflinefor > 60 && restarted != 1){
channelSend(`server Offline for 60 seconds Restarting`)
const killer = spawn("screen", ['-XS', 'minecraft'])
const mc = spawn("screen", ['-dmS', 'minecraft', '/bin/bash', `${process.env.SERSTARTLOC}`])
restarted = 1
}