Class Configs

java.lang.Object
me.neznamy.tab.shared.config.Configs

public class Configs extends Object
Core of loading configuration files
  • Constructor Details

    • Configs

      public Configs() throws org.yaml.snakeyaml.error.YAMLException, IOException
      Constructs new instance and loads configuration files. If needed, converts old configuration files as well.
      Throws:
      IOException - if File I/O operation fails
      org.yaml.snakeyaml.error.YAMLException - if files contain syntax errors
  • Method Details

    • getSecretOption

      public <T> T getSecretOption(String path, T defaultValue)
      Returns value of hidden config option with specified path if it exists, defaultValue otherwise
      Parameters:
      path - path to value
      defaultValue - value to return if option is not present in file
      Returns:
      value with specified path or default value if not present
    • getMessages

      public MessageFile 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

      public MySQL getMysql()
    • getGroup

      public String getGroup(List<Object> serverGroups, String element)
    • isDebugMode

      public boolean isDebugMode()