Package top.focess.qq.api.util.config
Class LangConfig
- java.lang.Object
-
- top.focess.qq.api.util.config.Config
-
- top.focess.qq.api.util.config.LangConfig
-
public class LangConfig extends Config
Represents a language config named "lang.yml" in the plugin jar file.
-
-
Constructor Summary
Constructors Constructor Description LangConfig(@Nullable InputStream inputStream)LangConfig(File file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(String key)Get the value of the specified keyprotected ConfiggetSection(String key)Get the section named key Note: if the section named key does not exist, it will be created
-
-
-
Constructor Detail
-
LangConfig
public LangConfig(@Nullable InputStream inputStream)
-
LangConfig
public LangConfig(File file) throws top.focess.util.yaml.YamlLoadException
- Throws:
top.focess.util.yaml.YamlLoadException
-
-
Method Detail
-
getSection
protected Config getSection(String key)
Description copied from class:ConfigGet the section named key Note: if the section named key does not exist, it will be created- Specified by:
getSectionin classConfig- Parameters:
key- the key of the Section- Returns:
- the section named key
-
-