Class FileReader

java.lang.Object
de.redstoneworld.redutilities.files.bungee.FileReader

public class FileReader extends Object
  • 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

      public void setConfigPartMessages(String configPartMessages)
      This method sets the configuration part for messages.
      Parameters:
      configPartMessages - (String) config part
    • setConfigPartFeatures

      public void setConfigPartFeatures(String configPartFeatures)
      This method sets the configuration part for features.
      Parameters:
      configPartFeatures - (String) config part
    • getLang

      public String getLang(String key, String... args)
      This method reads the specific messages in config.yml and replaces the minecraft color codes with a valid character.
      Parameters:
      key - YAML key
      args - placeholder without "%" and value for the placeholder
      Returns:
      the config messages (String)
    • getLang

      public String getLang(Boolean colorCodeReplace, String key, String... args)
      This method reads the specific messages in config.yml and replaces the minecraft color codes with a valid character.
      Parameters:
      key - YAML key
      colorCodeReplace - should the native color-code identifier "ยง" be replaced with "&"
      args - placeholder without "%" and value for the placeholder
      Returns:
      the config messages (String)
    • getBooleanOption

      public boolean getBooleanOption(String key)
    • getIntOption

      public int getIntOption(String key)
    • getStringOption

      public String getStringOption(String key)