Interface ConfigurationAPI
- All Known Implementing Classes:
Stargate
public interface ConfigurationAPI
An API for interacting with Stargate's configuration file
- Author:
- Kristian Knarvik (EpicKnarvik97)
-
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationOptionValue(ConfigurationOption configurationOption) Gets the current value of a configuration optionvoidreload()Reloads the configuration from diskvoidSaves the current state of the configuration to diskvoidsetConfigurationOptionValue(ConfigurationOption configurationOption, Object newValue) Sets the value of a configuration option
-
Method Details
-
setConfigurationOptionValue
Sets the value of a configuration option- Parameters:
configurationOption-The configuration option to update
newValue-The new value of the configuration option
-
getConfigurationOptionValue
Gets the current value of a configuration option- Parameters:
configurationOption-The configuration option to get the value of
- Returns:
The current value of the specified configuration option
-
saveConfiguration
void saveConfiguration()Saves the current state of the configuration to diskThis needs to be run after any config changes to update the config file.
-
reload
void reload()Reloads the configuration from diskThis needs to be executed in order for saved config changes to take effect.
-