Class MultiConfigurationAdapter
java.lang.Object
me.lucko.luckperms.common.config.generic.adapter.MultiConfigurationAdapter
- All Implemented Interfaces:
ConfigurationAdapter
A
ConfigurationAdapter composed of one or more other ConfigurationAdapters.-
Constructor Summary
ConstructorsConstructorDescriptionMultiConfigurationAdapter(LuckPermsPlugin plugin, List<ConfigurationAdapter> adapters) Creates aMultiConfigurationAdapter.MultiConfigurationAdapter(LuckPermsPlugin plugin, ConfigurationAdapter... adapters) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBoolean(String path, boolean def) intgetInteger(String path, int def) getStringList(String path, List<String> def) getStringMap(String path, Map<String, String> def) voidreload()
-
Constructor Details
-
MultiConfigurationAdapter
Creates aMultiConfigurationAdapter.The first adapter in the list has priority (the final say) in deciding what the value is. All adapters are tried in reverse order, and the value returned from the previous adapter is passed into the next as the
defvalue.- Parameters:
plugin- the pluginadapters- a list of adapters
-
MultiConfigurationAdapter
-
-
Method Details
-
getPlugin
- Specified by:
getPluginin interfaceConfigurationAdapter
-
reload
public void reload()- Specified by:
reloadin interfaceConfigurationAdapter
-
getString
- Specified by:
getStringin interfaceConfigurationAdapter
-
getInteger
- Specified by:
getIntegerin interfaceConfigurationAdapter
-
getBoolean
- Specified by:
getBooleanin interfaceConfigurationAdapter
-
getStringList
- Specified by:
getStringListin interfaceConfigurationAdapter
-
getStringMap
- Specified by:
getStringMapin interfaceConfigurationAdapter
-