Class Config

  • Direct Known Subclasses:
    PlanConfig, ServerFileLoader, ThemeConfig

    public class Config
    extends ConfigNode
    Configuration utility for storing settings in a .yml file.

    Based on https://github.com/AuroraLS3/Abstract-Plugin-Framework/blob/72e221d3571ef200727713d10d3684c51e9f469d/AbstractPluginFramework/api/src/main/java/com/djrapitops/plugin/config/Config.java

    • Constructor Detail

      • Config

        public Config​(java.io.File configFile)
      • Config

        public Config​(java.io.File configFile,
                      ConfigNode defaults)
    • Method Detail

      • read

        public void read()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • save

        public void save()
                  throws java.io.IOException
        Description copied from class: ConfigNode
        Find the root node and save.
        Overrides:
        save in class ConfigNode
        Throws:
        java.io.IOException - If the save can not be performed.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class ConfigNode
      • getConfigFilePath

        public java.nio.file.Path getConfigFilePath()