#NoTrayIcon
#SingleInstance IGNORE

s_Parameters := ""
Loop, %0%
{
	_param := %A_Index%
	IfInString, _param, %A_Space%
		_param := """" . _param . """"
	s_Parameters .= (!s_Parameters) ? _param : " " . _param
}

RunWait, %comspec% /c "minetest.exe --server %s_Parameters%"