# Velocity

KaGuilds supports running in a Velocity proxy server environment, enabling cross-server data synchronization and feature sharing. This document guides you through the complete Velocity-side configuration process.

## Installation

KaGuildsProxy is a Velocity plugin that only needs to be installed on the Velocity server — it does **not** need to be installed on sub-servers.

After downloading `KaGuildsProxy.jar`, copy it to your Velocity server's `plugins` folder and restart the Velocity server. No configuration file changes are required on the Velocity server.

## Configuration

### Configure All Sub-Servers

**Important: All sub-servers must use the same database configuration!**

Configure the database in each sub-server's `plugins/KaGuilds/config.yml`:

```yaml
# KaGuilds Configuration File
proxy: true  # ✅ Enable proxy mode
server-id: survival  # ⚠️ Each server must be different!

database:
  type: "MySQL"  # ⚠️ Must use MySQL
  host: "localhost"
  port: 3306
  db: "kaguilds"
  user: "kaguilds"
  password: "your_secure_password"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://katacr.gitbook.io/plugins/kaguilds-en/readme/velocity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
