mirror of
https://github.com/Expand-sys/mcbot
synced 2025-12-17 07:12:13 +11:00
lol
This commit is contained in:
parent
5e8780160a
commit
bcf83fe68f
1 changed files with 1 additions and 1 deletions
|
|
@ -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}`
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue