Uses of Interface
privbot.config.ConfigMigration.Step
Packages that use ConfigMigration.Step
Package
Description
Plugin settings helpers:
ConfigMigration, the versioned migration a plugin runs first in
startUp whenever it changes a config default or the meaning of a key.-
Uses of ConfigMigration.Step in privbot.config
Methods in privbot.config that return ConfigMigration.StepModifier and TypeMethodDescriptionstatic ConfigMigration.StepConfigMigration.replaceIfEquals(int version, String key, String oldValue, String newValue) RewriteskeytonewValueonly while its saved value, trimmed, equalsoldValueexactly (case-sensitive: enums are stored by name).static ConfigMigration.StepDropskey(a setting that no longer exists); nothing when it is not saved.Methods in privbot.config with parameters of type ConfigMigration.StepModifier and TypeMethodDescriptionstatic List<ConfigMigration.Change> ConfigMigration.run(ConfigMigration.ConfigAccess config, ConfigMigration.Step... steps) Applies every step whose version is above the savedConfigMigration.VERSION_KEY, in version order (steps of one version in the order given), then stores the highest version given.