reload

fun reload(): T

Reloads the configuration from disk.

Runs the full loading pipeline (read, migrate, deserialize, validate, @Env) and atomically swaps the internal reference. If the new value differs from the old one, all registered onChange listeners are notified.

fun onReloadCommand() {
val fresh = configRef.reload()
sender.sendMessage("Reloaded! Server ID: ${fresh.serverId}")
}

Return

The freshly loaded configuration instance.

Since

1.0