Package-level declarations

Types

Link copied to clipboard
sealed interface ConfigLoadResult

The outcome of reading config.yml through ConfigManager.loadStrictly.

Link copied to clipboard
class ConfigManager(logger: Logger)

Reads config.yml into LunaticChatConfiguration.

Link copied to clipboard
class ConfigurationReloader(configManager: ConfigManager, startupConfiguration: LunaticChatConfiguration, messageFormatHolder: MessageFormatHolder, debugState: DebugState, logger: Logger, readConfigFile: () -> String)

Re-reads config.yml and applies what can be applied without restarting the server.

Link copied to clipboard
typealias LenientBoolean = @Serializable(with = LenientBooleanSerializer::class) Boolean

A Boolean that also accepts the spellings YAML 1.1 counted as boolean.

Link copied to clipboard
object LenientBooleanSerializer : KSerializer<Boolean>
Link copied to clipboard
@Serializable
data class LunaticChatConfiguration(val features: FeaturesConfig = FeaturesConfig(), val messageFormat: MessageFormatConfig = MessageFormatConfig(), val debug: DebugConfig = DebugConfig(), val userSettingsFilePath: String = "player-settings.yaml", val checkForUpdates: LenientBoolean = true, val language: Language = Language.EN)

The shape of config.yml.

Link copied to clipboard

The message formats currently in effect, which /lc reload may replace while the server runs.

Link copied to clipboard
sealed interface ReloadResult

What a reload did to the running configuration.

Link copied to clipboard
data class SettingFallback(val settingKey: String, val reason: String)

A setting that could not be read, and so fell back to the default on the data class.