> For the complete documentation index, see [llms.txt](https://kynosdeveloping.gitbook.io/kynosdeveloping/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kynosdeveloping.gitbook.io/kynosdeveloping/kynoslib/configuration-and-modules.md).

# 📄 Configuration & Modules

KynosLib features a centralized configuration engine that acts as the runtime source of truth for all internal framework modules and default listener states.

## **Config**

```yaml
# ============================================================
#   KynosLib - Core Configuration
#   All messages are configurable here.
#   Supports & colors, &#RRGGBB hex, and placeholders {player}, {version}, {plugin}
# ============================================================

# ---------------------------------------------------------------
# MODULES (Can be toggled in-game with /kynoslib gui)
# ---------------------------------------------------------------
Modules:
  FileManager: true
  GuiManager: true
  PluginDisabler: true
  PluginEnabler: true

# ---------------------------------------------------------------
# LISTENERS (Can be toggled in-game with /kynoslib gui)
# ---------------------------------------------------------------
Listeners:
  PlayerJoin:
    Enabled: true

# ---------------------------------------------------------------
# MESSAGES (ALL configurable, nothing hardcoded in the code)
# ---------------------------------------------------------------
Messages:

  # Generic messages reusable by any child plugin
  NoPermission:    "&cYou do not have permission to execute this command!"
  PlayerOnly:      "&cThis command can only be executed by a player."
  UnknownCommand:  "&cUnknown command. Use &e/{cmd} help &cfor a list."
  ReloadSuccess:   "&7[KynosLib] &aConfiguration reloaded successfully!"
  CooldownActive:  "&cPlease wait %.1fs before doing this again!"

  # /kynoslib (no args) - version info
  KynosLibInfo:
    Separator: "&7&m-----------------------------------"
    HelpHint:  "&7Use &e/kynoslib help &7for admin commands."

  # /kynoslib help
  KynosLibHelp:
    Separator:       "&7&m-----------------------------------"
    Title:           "&c&lKynosLib &7- Available Commands:"
    CmdInfo:         "&e/kynoslib             &7→ Version info"
    CmdGui:          "&e/kynoslib gui         &7→ In-game module management"
    CmdReload:       "&e/kynoslib reload      &7→ Reload the config"
    CmdStopPlugin:   "&e/stopplugin <name>    &7→ Disable a plugin"

  # /stopplugin
  PluginDisabler:
    Usage:    "&cUsage: /stopplugin <plugin_name>"
    Self:     "&cYou cannot disable KynosLib itself!"
    NotFound: "&cPlugin &e{plugin} &cnot found or already disabled."
    Success:  "&aPlugin &e{plugin} &cdisabled successfully!"
    Error:    "&cAn error occurred while disabling &e{plugin}&c. Check the console."

  PluginEnabler:
    Usage: "&cUsage: /startplugin <plugin_name>"
    NotFound: "&cPlugin &e{plugin} &cnot found or already enabled."
    Success: "&aPlugin &e{plugin} &cenabled successfully!"
    Error: "&cAn error occurred while enabling &e{plugin}&c. Check the console."

  # In-game GUI
  GUI:
    ConfigUpdated: "&7[KynosLib] &aConfiguration updated!"
    ModuleToggled: "&7[KynosLib] &b{module} &7→ {state}"
    StateEnabled:  "&aENABLED"
    StateDisabled: "&cDISABLED"
    sound: "UI_BUTTON_CLICK"
    volume: 1.0
    pitch: 1.0

  # PlayerJoin Listener
  Listeners:
    PlayerJoinEvent:
      message: "&f{player} &7joined the server!"
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://kynosdeveloping.gitbook.io/kynosdeveloping/kynoslib/configuration-and-modules.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.
