From 100e065b4dc3bec9d90524312692a29452883ec0 Mon Sep 17 00:00:00 2001
From: cedarlug <cedarlug@fistfuloffrags.org>
Date: Thu, 9 Jun 2016 18:58:58 -0500
Subject: [PATCH] Adding unreal4 option for Ark in command_details; Integrating
 yadutaf\'s startup parms

---
 ARKSurvivalEvolved/arkserver      | 10 ++++++++--
 lgsm/functions/command_details.sh |  4 ++--
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ARKSurvivalEvolved/arkserver b/ARKSurvivalEvolved/arkserver
index 719cbe50a..c842f5318 100644
--- a/ARKSurvivalEvolved/arkserver
+++ b/ARKSurvivalEvolved/arkserver
@@ -20,7 +20,7 @@ version="210516"
 emailalert="off"
 email="email@example.com"
 
-# Pushbullet 
+# Pushbullet
 # https://www.pushbullet.com/#settings
 pushbulletalert="off"
 pushbullettoken="accesstoken"
@@ -30,11 +30,17 @@ steamuser="anonymous"
 steampass=""
 
 # Start Variables
+servername="ark-server"
+port="7778"
+queryport="27015"
+rconport="32330"
+rconpassword="" # Set to enable rcon
+maxplayers="50"
 ip="0.0.0.0"
 updateonstart="off"
 
 fn_parms(){
-parms="TheIsland?listen"
+    parms="TheIsland?listen?MultiHome=${ip}?SessionName=${servername}?MaxPlayers=${maxplayers}?QueryPort=${queryport}?RCONPort=${rconport}?Port=${port}?ServerAdminPassword=${rconpassword}"
 }
 
 #### Advanced Variables ####
diff --git a/lgsm/functions/command_details.sh b/lgsm/functions/command_details.sh
index f15380490..a64247696 100644
--- a/lgsm/functions/command_details.sh
+++ b/lgsm/functions/command_details.sh
@@ -288,7 +288,7 @@ fn_details_ports(){
 		fi
 	done
 
-	local ports_edit_array=( "starbound" "spark" "source" "goldsource" "Rust" "Hurtworld" )
+	local ports_edit_array=( "starbound" "spark" "source" "goldsource" "Rust" "Hurtworld" "unreal4")
 	for port_edit in "${ports_edit_array[@]}"
 	do
 		if [ "${engine}" == "${port_edit}" ]||[ "${gamename}" == "${port_edit}" ]; then
@@ -608,4 +608,4 @@ else
 	fn_print_error_nl "Unable to detect server engine."
 fi
 
-fn_details_statusbottom
\ No newline at end of file
+fn_details_statusbottom