 ' + (data.error || 'Unknown error'));
                }
            } catch (error) {
                alert('Failed to update server port: ' + error);
            }
        }

        async function forceSaveProtoland() {
            try {
                const response = await fetch('/api/forceSaveProtoland', {
                    method: 'POST'
                });
                
                if (!response.ok) {
                    throw new Error('Failed to save town');
                }
           