Package org.sgrewritten.stargate.config
Class ConfigurationHelper
java.lang.Object
org.sgrewritten.stargate.config.ConfigurationHelper
Contains various methods for getting values of current settings
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
getBoolean
(ConfigurationOption configurationOption) Gets the boolean value of a settingstatic double
getDouble
(ConfigurationOption configurationOption) Gets the double value of a settingstatic int
getInteger
(ConfigurationOption configurationOption) Gets the integer value of a settingstatic String
getString
(ConfigurationOption configurationOption) Gets the string value of a settinggetStringList
(ConfigurationOption configurationOption)
-
Method Details
-
getInteger
Gets the integer value of a setting- Parameters:
configurationOption
-The setting to get
- Returns:
The value of the setting
-
getDouble
Gets the double value of a setting- Parameters:
configurationOption
-The setting to get
- Returns:
The value of the setting
-
getString
Gets the string value of a setting- Parameters:
configurationOption
-The setting to get
- Returns:
The value of the setting
-
getBoolean
Gets the boolean value of a setting- Parameters:
configurationOption
-The setting to get
- Returns:
The value of the setting
-
getStringList
- Parameters:
configurationOption
-The configuration option to get the data from
- Returns:
A list of strings from the configuration option
-