|
|
@@ -80,6 +80,71 @@ case "${getopt}" in
|
|
|
esac
|
|
|
}
|
|
|
|
|
|
+fn_getopt_bf1942(){
|
|
|
+case "${getopt}" in
|
|
|
+ st|start)
|
|
|
+ command_start.sh;;
|
|
|
+ sp|stop)
|
|
|
+ command_stop.sh;;
|
|
|
+ r|restart)
|
|
|
+ command_restart.sh;;
|
|
|
+ uf|update-functions)
|
|
|
+ command_update_functions.sh;;
|
|
|
+ m|monitor)
|
|
|
+ command_monitor.sh;;
|
|
|
+ ta|test-alert)
|
|
|
+ command_test_alert.sh;;
|
|
|
+ dt|details)
|
|
|
+ command_details.sh;;
|
|
|
+ pd|postdetails)
|
|
|
+ command_postdetails.sh;;
|
|
|
+ b|backup)
|
|
|
+ command_backup.sh;;
|
|
|
+ c|console)
|
|
|
+ command_console.sh;;
|
|
|
+ d|debug)
|
|
|
+ command_debug.sh;;
|
|
|
+ dev|dev-debug)
|
|
|
+ command_dev_debug.sh;;
|
|
|
+ i|install)
|
|
|
+ command_install.sh;;
|
|
|
+ ai|auto-install)
|
|
|
+ fn_autoinstall;;
|
|
|
+ dd|detect-deps)
|
|
|
+ command_dev_detect_deps.sh;;
|
|
|
+ dg|detect-glibc)
|
|
|
+ command_dev_detect_glibc.sh;;
|
|
|
+ dl|detect-ldd)
|
|
|
+ command_dev_detect_ldd.sh;;
|
|
|
+ *)
|
|
|
+ if [ -n "${getopt}" ]; then
|
|
|
+ echo -e "${red}Unknown command${default}: $0 ${getopt}"
|
|
|
+ exitcode=2
|
|
|
+ fi
|
|
|
+ echo "Usage: $0 [option]"
|
|
|
+ echo "${gamename} - Linux Game Server Manager - Version ${version}"
|
|
|
+ echo "https://gameservermanagers.com/${selfname}"
|
|
|
+ echo -e ""
|
|
|
+ echo -e "${lightyellow}Commands${default}"
|
|
|
+ {
|
|
|
+ echo -e "${blue}start\t${default}st |Start the server."
|
|
|
+ echo -e "${blue}stop\t${default}sp |Stop the server."
|
|
|
+ echo -e "${blue}restart\t${default}r |Restart the server."
|
|
|
+ echo -e "${blue}update-functions\t${default}uf |Removes all functions so latest can be downloaded."
|
|
|
+ echo -e "${blue}monitor\t${default}m |Checks that the server is running."
|
|
|
+ echo -e "${blue}test-alert\t${default}ta |Sends test alert."
|
|
|
+ echo -e "${blue}details\t${default}dt |Displays useful infomation about the server."
|
|
|
+ echo -e "${blue}postdetails\t${default}pd |Post stripped details to pastebin (for support)"
|
|
|
+ echo -e "${blue}backup\t${default}b |Create archive of the server."
|
|
|
+ echo -e "${blue}console\t${default}c |Console allows you to access the live view of a server."
|
|
|
+ echo -e "${blue}debug\t${default}d |See the output of the server directly to your terminal."
|
|
|
+ echo -e "${blue}install\t${default}i |Install the server."
|
|
|
+ echo -e "${blue}auto-install\t${default}ai |Install the server, without prompts."
|
|
|
+ } | column -s $'\t' -t
|
|
|
+ esac
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
fn_getopt_teamspeak3(){
|
|
|
case "${getopt}" in
|
|
|
st|start)
|
|
|
@@ -554,6 +619,8 @@ case "${getopt}" in
|
|
|
|
|
|
if [ "${gamename}" == "Mumble" ]; then
|
|
|
fn_getopt_mumble
|
|
|
+elif [ "${gamename}" == "Battlefield: 1942" ]; then
|
|
|
+ fn_getopt_bf1942
|
|
|
elif [ "${engine}" == "lwjgl2" ]; then
|
|
|
fn_getopt_minecraft
|
|
|
elif [ "${gamename}" == "TeamSpeak 3" ]; then
|