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