minecraft-bukkit-start-script/bukkit-start
2022-01-15 14:05:19 +01:00

36 lines
752 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# ×=================================×
# | bukkit-start by Elias Schriefer |
# ×=================================×
server=""
if [ "$1" = "-h" ]
then
echo "bukkit-start [option]"
echo
echo "Options:"
echo " -h Show help"
exit 0
fi
# Get the bukkit server status: is it running or stopped?
# We don't need echo, but thx anyways...
$server-status > /dev/null
if [ $? -gt 0 ]
then
# If the server is stopped, go into the server directory, ...
cd /media/games/$server/
# start the screen with Socket name & title "bukkit"
# and run the start script
screen -dmS $server -t $server ./start.sh
# Now gimme my suxesvul eksit koud...
true
else
# or my unsuxesvul eksit koud...
false
fi
# and eksit wif that eksit koud
exit $?