aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--minecraft10
1 files changed, 8 insertions, 2 deletions
diff --git a/minecraft b/minecraft
index 33e31dc..64c786b 100644
--- a/minecraft
+++ b/minecraft
@@ -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() {