memory, $server->allocation->ip ?? '127.0.0.1', (string) ($server->allocation->port ?? '0'), ]; foreach ($server->variables as $variable) { $find[] = '{{' . $variable->env_variable . '}}'; $replace[] = ($variable->user_viewable && !$hideAllValues) ? ($variable->server_value ?? $variable->default_value) : '[hidden]'; } return str_replace($find, $replace, $server->startup); } }