diff options
-rw-r--r-- | minecraft | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -13,8 +13,14 @@ depend() { } start() { - echo Starting Minecraft server... - (cd $MCPATH && screen -h 1024 -dmS $SESSION $CMD) + if which shiftdown > /dev/null && shiftdown + then + echo Not starting Minecraft server because Shift is held. + return 1 + else + echo Starting Minecraft server... + (cd $MCPATH && screen -h 1024 -dmS $SESSION $CMD) + fi } stop() { |