Class FileReader
java.lang.Object
de.redstoneworld.redutilities.files.bukkit.FileReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanOption
(String key) org.bukkit.configuration.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
(org.bukkit.configuration.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(org.bukkit.configuration.Configuration configuration) -
getConfiguration
public org.bukkit.configuration.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
-