mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-06-21 17:57:47 +02:00
Implement the runtime entry point for the YAML config: - ConfigurationLoader.loadConfiguration() resolves velocity.yml, migrating a legacy velocity.toml or writing the documented default on first start. Absent keys fall back to the model's field defaults (matching the old getOrElse behaviour), so existing files are never rewritten and their comments survive. - Migration runs the legacy night-config migrations to normalise the TOML, then writes it as YAML stamped config-version=1, preserving a custom forwarding-secret-file location, and archives the old file as velocity.toml.migrated. - Forwarding secret resolution mirrors the legacy path (env var, then the forwarding-secret-file, creating it if absent) and is injected via a new package-private setter; the secret stays out of velocity.yml. Not yet wired into VelocityServer; that follows in the next change. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>