# Configuration

### Configuration

Use this page to manage the main Vxkoth settings.

Edit the config files carefully.

Reload or reload after changes if required by your setup.

### Config files

Document the files used by Vxkoth here.

Typical files include:

<details>

<summary>Config.yml</summary>

```yaml
# ==========================================
#         VxKoth Configuration
# ==========================================

global:
  use-cache: false
  debug: false
  # Make sure this matches a valid Java TimeZone (e.g., Europe/Amsterdam, America/New_York)
  schedule-timezone: Europe/Amsterdam

hooks:
  bossbar:
    # ======================================================
    # Note: Bossbar colors, styles, and text are now fully
    # customizable PER-KOTH! You can edit them inside each
    # arena's specific file: plugins/VxKoth/koths/<arena>.yml
    # ======================================================

    # How far away (in blocks) a player must be to see the KOTH bossbar
    range: 50

settings:
  # ======================================================
  #                 TEAM & CLAN SUPPORT
  # ======================================================
  # Choose which plugin VxKoth should hook into to group players.
  # Available Options: NONE, BetterTeams, SimpleClans, mcMMO, Lands, Gangs
  team-support: "NONE"

  # ======================================================
  #                 HOLOGRAM SETTINGS
  # ======================================================
  # Note: Hologram text and titles are customizable PER-KOTH
  # inside their respective arena .yml files.
  #
  # Choose when the hologram should be visible floating above the KOTH:
  # "all the time" - Shows the "Inactive" status when the KOTH is off.
  # "only when koth is active" - Completely hides the hologram when off.
  hologram-active: "all the time"

  # ======================================================
  #                 VISUAL EVENT SETTINGS
  # ======================================================
  particles:
    enabled: true
    # Use valid Spigot particle names (e.g., FLAME, VILLAGER_HAPPY, HEART)
    type: "FLAME"

  dynamic-floor:
    enabled: true

  # ----------------------------------------------------
  # KOTH Event Expiration Timers
  # ----------------------------------------------------
  # Timeout: If the KOTH reaches this time limit, the event shuts down
  # and NOBODY wins. Use this to prevent empty events running forever.
  koth-timeout-seconds: 1800

  # Hardstop: If the KOTH reaches this time limit, it FORCE-ENDS and
  # gives the rewards to the LAST person who was capturing it!
  # Use this to stop endless PVP wars. (Set to 0 to disable).
  hardstop: 3600

  schedule-alerts:
    enabled: true
    # Time in seconds before the KOTH starts to broadcast an alert
    alerts: [3600, 1800, 900, 600, 300, 60, 30, 15, 10, 5]
    broadcast-range: 0
```

</details>

<details>

<summary>Lang.yml</summary>

```yaml
# Use standard colors (&a, &c) or Hex Colors (#&RRGGBB)

messages:
  prefix: "#&ff6600&lVxKoth &8» &r"
  no-permission: "#&ff0000You do not have permission to access this command!"
  only-players: "#&ff0000You must be a player to use this command!"
  invalid-command: "#&ff0000Invalid command or subcommand!"
  plugin-reloaded: "#&33ff33VxKoth configuration, languages, and arenas successfully reloaded!"

  # Help Menu
  help-header: "&8&m--------------------------------------------------"
  help-title: "                #&ff6600&lVxKoth Commands"
  help-cmd-info: " #&fc8d5d/vxkoth info <name> &8- &7View arena info"
  help-cmd-help: " #&fc8d5d/vxkoth help &8- &7Shows this menu"
  help-cmd-wand: " #&fc8d5d/vxkoth wand &8- &7Get selection wand"
  help-cmd-create: " #&fc8d5d/vxkoth create <name> <type> <time> &8- &7Create arena"
  help-cmd-editor: " #&fc8d5d/vxkoth editor <name> &8- &7Open GUI editor"
  help-cmd-moveholo: " #&fc8d5d/vxkoth movehologram <name> &8- &7Move hologram"
  help-cmd-start: " #&fc8d5d/vxkoth start <name> &8- &7Force start KOTH"
  help-cmd-stop: " #&fc8d5d/vxkoth stop <name|all> &8- &7Force stop KOTH"
  help-cmd-delete: " #&fc8d5d/vxkoth delete <name> &8- &7Delete an arena"
  help-cmd-reload: " #&fc8d5d/vxkoth reload &8- &7Reload configs"
  help-footer: "&8&m--------------------------------------------------"

  # Command Usages
  usage-main: "&7Usage: &f/vxkoth help"
  usage-create: "&7Usage: &f/vxkoth create <name> <square/poly> <time>"
  usage-start: "&7Usage: &f/vxkoth start <name>"
  usage-stop: "&7Usage: &f/vxkoth stop <name|all>"
  usage-info: "&7Usage: &f/vxkoth info <name>"
  usage-editor: "&7Usage: &f/vxkoth editor <name>"
  usage-delete: "&7Usage: &f/vxkoth delete <name>"
  usage-movehologram: "&7Usage: &f/vxkoth movehologram <name>"

  # KOTH Creation & Editing
  invalid-time: "#&ff0000Capture time must be a valid number (e.g., 300, 5m, 10m)!"
  square-need-points: "#&ff0000You must select 2 points for a square KOTH!"
  poly-need-points: "#&ff0000You need at least 3 points for a poly KOTH!"
  invalid-type: "#&ff0000Invalid type. Use 'square' or 'poly'."
  arena-saved: "#&00ff00Successfully created %type% KOTH &f%arena% &7(%time%)"
  hologram-moved: "#&00ff00Moved the hologram for &f%arena% #&00ff00to your exact location!"

  # KOTH Management
  arena-not-found: "#&ff0000The KOTH &f%arena% #&ff0000does NOT exist!"
  arena-deleted: "#&ff0000You have deleted the KOTH &f%arena%#&ff0000!"
  koth-already-active: "#&ff0000A KOTH is already currently active!"
  no-koth-running: "#&ff0000There are no KOTHs currently running."
  koth-not-running: "#&ff0000The KOTH &f%arena% #&ff0000is not active!"
  koth-stopped: "#&fc8d5dThe active KOTH has been stopped!"

  # Wand
  wand-name: "#&ff6600&lSELECTION WAND"
  wand-received: "#&00ff00Left-click for Pos #1, Right-click for Pos #2."
  wand-point-added: "&fSelected #&ff6600POINT %count% &7- #&dddddd%x%, %y%, %z%"

  # Game Events
  koth-start-title: "#&ff6600&lKOTH STARTED"
  koth-start-subtitle: "#&dddddd%arena% is now active!"
  koth-start-broadcast: "&fKoth #&fc8d5d%arena% &fhas started!"

  koth-win-title: "#&fc8d5d&lKOTH CAPTURED"
  koth-win-subtitle: "#&fc8d5d%player% &fcontrols #&fc8d5d%arena%&f!"
  koth-win-broadcast: "#&fc8d5d%player% &fhas captured the #&fc8d5d%arena% &fKOTH!"

  koth-stop-broadcast: "&fThe #&fc8d5dKOTH &fhas ended without a winner!"
  schedule-alert: "#&fc8d5d%arena% &fkoth will start in #&fc8d5d%time%&f!"

  koth-rewards-received: "#&00ff00You received your KOTH rewards!"
  koth-rewards-none: "&7You captured the KOTH, but didn't win any RNG rewards this time!"

  # Action Bars & Trackers
  actionbar-capturing: "&aCapturing &8» &e%time%"
  actionbar-capturing-team: "&aCapturing &8» &e%time% &8| &b%team%"
  actionbar-contested: "#&ff0000&lCONTESTED! &7Clear the zone to capture!"

  # Milestones
  milestone-25: "#&fc8d5d%arena% &fis #&ffcc0025% &fcaptured!"
  milestone-50: "#&fc8d5d%arena% &fis #&ff660050% &fcaptured!"
  milestone-75: "#&fc8d5d%arena% &fis #&ff000075% &fcaptured! &4Hurry!"
```

</details>

<details>

<summary>Schedule.json</summary>

```json
[
  {
    "arena": "example_arena",
    "day": "MONDAY",
    "time": "15:30"
  },
  {
    "arena": "outpost",
    "day": "EVERYDAY",
    "time": "20:00"
  }
]
```

</details>

### Safe edit flow

{% stepper %}
{% step %}

#### Stop or prepare your server

Avoid editing while active writes are happening.
{% endstep %}

{% step %}

#### Back up the files

Save a copy before changing values.
{% endstep %}

{% step %}

#### Edit one section at a time

Change small pieces first.
{% endstep %}

{% step %}

#### Apply the changes

Reload plugin.
{% endstep %}

{% step %}

#### Test the result

Check logs and confirm the feature works in game.
{% endstep %}
{% endstepper %}

### Example format

Use this structure for each setting:

```yml
example-setting: true
```

* **Path:** `example-setting`
* **Default:** `true`
* **Allowed values:** `true`, `false`
* **Description:** Enables the example feature.
* **Reload:** Restart recommended.

### Best practices

* Keep comments when possible.
* Avoid changing many values at once.
* Test large changes on a staging server.
* Keep backups for every release update.

{% hint style="warning" %}
Wrong indentation or invalid values can break YAML-based configs.
{% endhint %}

### Troubleshooting

#### Config changes do not apply

Check whether that option supports reload.

If not, restart the server.

#### Plugin fails after editing

Check:

* YAML indentation
* missing quotes
* invalid numbers
* unsupported values

Then review the latest logs.

#### Values reset after update

Compare your old file with the new default file.

Merge changes carefully.


---

# 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://vortexstudio-1.gitbook.io/vortexstudio-docs/vxkoth/configuration.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.
