This commit is contained in:
Expand 2023-12-17 04:38:19 +11:00
parent 5e8780160a
commit bcf83fe68f

View file

@ -44,7 +44,7 @@ module.exports = {
} }
if(serverofflinefor == 60 && restarted != 1){ if(serverofflinefor == 60 && restarted != 1){
channelSend(`server Offline for 60 seconds Restarting`) channelSend(`server Offline for 60 seconds Restarting`)
const killer = spawn("screen", ['-XS', 'minecraft']) const killer = spawn("screen", ['-XS', 'minecraft', 'quit'])
const mc = spawn("screen", ['-dmS', 'minecraft', '/bin/bash', `${process.env.SERSTARTLOC}/ServerStart.sh`], { const mc = spawn("screen", ['-dmS', 'minecraft', '/bin/bash', `${process.env.SERSTARTLOC}/ServerStart.sh`], {
cwd: `${process.env.SERSTARTLOC}` cwd: `${process.env.SERSTARTLOC}`
}) })