Index: scripts/etc/bash_completion.d/7dtd
===================================================================
--- scripts/etc/bash_completion.d/7dtd	(revision 18)
+++ scripts/etc/bash_completion.d/7dtd	(revision 19)
@@ -1,25 +1,28 @@
-. /usr/local/lib/7dtd/common.sh
-checkRootLoadConf
+if [ $(id -u) -eq 0 ]; then
+	_sdtd() {
+		. /usr/local/lib/7dtd/common.sh
+		checkRootLoadConf
 
-_sdtd() {
-	local cur prev opts
-	COMPREPLY=()
-	cur="${COMP_WORDS[COMP_CWORD]}"
-	prev="${COMP_WORDS[COMP_CWORD-1]}"
+		local cur prev opts
+		COMPREPLY=()
+		cur="${COMP_WORDS[COMP_CWORD]}"
+		prev="${COMP_WORDS[COMP_CWORD-1]}"
 
-	opts="help $(listCommands)"
-	
-	case "${COMP_CWORD}" in
-		1)
-			COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
-			return 0
-			;;
-		*)
-			if [ "$(type -t sdtdCommand$(camelcasePrep ${COMP_WORDS[1]})Expects)" = "function" ]; then
-				COMPREPLY=( $(compgen -W "$(sdtdCommand$(camelcasePrep ${COMP_WORDS[1]})Expects $COMP_CWORD)" -- ${cur}) )
+		opts="help $(listCommands)"
+
+		case "${COMP_CWORD}" in
+			1)
+				COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
 				return 0
-			fi
-			;;
-	esac
-}
-complete -F _sdtd 7dtd.sh
+				;;
+			*)
+				if [ "$(type -t sdtdCommand$(camelcasePrep ${COMP_WORDS[1]})Expects)" = "function" ]; then
+					local words="$(sdtdCommand$(camelcasePrep ${COMP_WORDS[1]})Expects $COMP_CWORD $prev)"
+					COMPREPLY=( $(compgen -W "$words" -- ${cur}) )
+					return 0
+				fi
+				;;
+		esac
+	}
+	complete -F _sdtd 7dtd.sh
+fi
