Package com.skillw.pouvoir.api.manager
Class ConfigManager
-
- All Implemented Interfaces:
-
com.skillw.pouvoir.api.manager.Manager
,com.skillw.pouvoir.api.plugin.map.RegContainer
,com.skillw.pouvoir.api.plugin.map.component.Keyable
,com.skillw.pouvoir.api.plugin.map.component.Registrable
,java.io.Serializable
,java.util.concurrent.ConcurrentMap
,kotlin.Comparable
,kotlin.collections.Map
,kotlin.collections.MutableMap
public abstract class ConfigManager extends BaseMap<String, YamlConfiguration> implements Manager
Config manager
-
-
Field Summary
Fields Modifier and Type Field Description private final String
key
private final File
serverDirectory
private final SubPouvoir
subPouvoir
-
Constructor Summary
Constructors Constructor Description ConfigManager(SubPouvoir subPouvoir)
Create empty Config manager
-
Method Summary
Modifier and Type Method Description String
getKey()
Key final File
getServerDirectory()
Server file final SubPouvoir
getSubPouvoir()
YamlConfiguration
get(String key)
final Unit
onReload()
final Unit
create(String name, String fileNames)
Create if not exists final Unit
createIfNotExists(String name, String fileNames)
Create if not exists final Map<String, Object>
completeYaml(File file, Set<String> ignores)
final Map<String, Object>
completeYaml(String filePath, Set<String> ignores)
-
-
Constructor Detail
-
ConfigManager
ConfigManager(SubPouvoir subPouvoir)
Create empty Config manager
-
-
Method Detail
-
getServerDirectory
final File getServerDirectory()
Server file
-
getSubPouvoir
final SubPouvoir getSubPouvoir()
-
get
YamlConfiguration get(String key)
-
createIfNotExists
final Unit createIfNotExists(String name, String fileNames)
Create if not exists
-
completeYaml
@Deprecated(message = "Deprecated", replaceWith = @ReplaceWith(imports = {}, expression = "")) final Map<String, Object> completeYaml(File file, Set<String> ignores)
-
completeYaml
@Deprecated(message = "Deprecated", replaceWith = @ReplaceWith(imports = {}, expression = "")) final Map<String, Object> completeYaml(String filePath, Set<String> ignores)
-
-
-
-