reload
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}")
}Content copied to clipboard
Return
The freshly loaded configuration instance.
Since
1.0