ConfigReloadEvent

class ConfigReloadEvent(var config: Configuration, var oldConfig: Configuration, var result: ResultedEvent.GenericResult = GenericResult.allowed()) : ResultedEvent<ResultedEvent.GenericResult>

Event triggered before the Impulse configuration is reloaded.

When impulse detects a change in the configuration file, this event is fired. After resolution, the config manager will update its internal state to match the value of "config". You can set the result to "denied" to prevent downstream listeners from updating their configuration.

Constructors

Link copied to clipboard
constructor(config: Configuration, oldConfig: Configuration, result: ResultedEvent.GenericResult = GenericResult.allowed())

create a new config reload event from and old and new configuration

Properties

Link copied to clipboard

the new configuration

Link copied to clipboard

the current live configuration

Link copied to clipboard
var result: ResultedEvent.GenericResult

the result of the event

Functions

Link copied to clipboard
open override fun getResult(): ResultedEvent.GenericResult

Get the current event result

Link copied to clipboard
open override fun setResult(result: ResultedEvent.GenericResult)

Set the event result