Package me.neznamy.tab.shared.config
Class Configs
java.lang.Object
me.neznamy.tab.shared.config.Configs
Core of loading configuration files
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionme.neznamy.tab.api.config.ConfigurationFileme.neznamy.tab.api.config.ConfigurationFileme.neznamy.tab.api.PropertyConfigurationme.neznamy.tab.api.config.ConfigurationFilegetMysql()me.neznamy.tab.api.config.ConfigurationFile<T> TgetSecretOption(String path, T defaultValue) Returns value of hidden config option with specified path if it exists, defaultValue otherwiseme.neznamy.tab.api.PropertyConfigurationgetUsers()booleanbooleanbooleanboolean
-
Constructor Details
-
Configs
Constructs new instance and loads configuration files. If needed, converts old configuration files as well.- Throws:
IOException- if File I/O operation failsorg.yaml.snakeyaml.error.YAMLException- if files contain syntax errors
-
-
Method Details
-
getSecretOption
Returns value of hidden config option with specified path if it exists, defaultValue otherwise- Parameters:
path- path to valuedefaultValue- value to return if option is not present in file- Returns:
- value with specified path or default value if not present
-
getMessages
-
getConfig
public me.neznamy.tab.api.config.ConfigurationFile getConfig() -
isRemoveGhostPlayers
public boolean isRemoveGhostPlayers() -
getLayout
public me.neznamy.tab.api.config.ConfigurationFile getLayout() -
getAnimationFile
public me.neznamy.tab.api.config.ConfigurationFile getAnimationFile() -
isBukkitPermissions
public boolean isBukkitPermissions() -
isPipelineInjection
public boolean isPipelineInjection() -
getPlayerDataFile
public me.neznamy.tab.api.config.ConfigurationFile getPlayerDataFile() -
getGroups
public me.neznamy.tab.api.PropertyConfiguration getGroups() -
getUsers
public me.neznamy.tab.api.PropertyConfiguration getUsers() -
getMysql
-
getGroup
-
isDebugMode
public boolean isDebugMode()
-