Class FileReader
java.lang.Object
de.redstoneworld.redutilities.files.bungee.FileReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanOption
(String key) net.md_5.bungee.config.Configuration
int
getIntOption
(String key) This method reads the specific messages in config.yml and replaces the minecraft color codes with a valid character.This method reads the specific messages in config.yml and replaces the minecraft color codes with a valid character.getStringOption
(String key) void
setConfig
(net.md_5.bungee.config.Configuration configuration) void
setConfigPartFeatures
(String configPartFeatures) This method sets the configuration part for features.void
setConfigPartMessages
(String configPartMessages) This method sets the configuration part for messages.
-
Constructor Details
-
FileReader
public FileReader()
-
-
Method Details
-
setConfig
public void setConfig(net.md_5.bungee.config.Configuration configuration) -
getConfiguration
public net.md_5.bungee.config.Configuration getConfiguration() -
setConfigPartMessages
This method sets the configuration part for messages.- Parameters:
configPartMessages
- (String) config part
-
setConfigPartFeatures
This method sets the configuration part for features.- Parameters:
configPartFeatures
- (String) config part
-
getLang
This method reads the specific messages in config.yml and replaces the minecraft color codes with a valid character.- Parameters:
key
- YAML keyargs
- placeholder without "%" and value for the placeholder- Returns:
- the config messages (String)
-
getLang
This method reads the specific messages in config.yml and replaces the minecraft color codes with a valid character.- Parameters:
key
- YAML keycolorCodeReplace
- should the native color-code identifier "ยง" be replaced with "&"args
- placeholder without "%" and value for the placeholder- Returns:
- the config messages (String)
-
getBooleanOption
-
getIntOption
-
getStringOption
-