Class ConfigurationManager


  • public abstract class ConfigurationManager
    extends Object
    • Field Detail

    • Constructor Detail

      • ConfigurationManager

        public ConfigurationManager​(@NotNull
                                    @NotNull ADPPlugin plugin)
    • Method Detail

      • reload

        public final void reload()
        Reload configuration files
      • isAutoUpgradeEnabled

        protected abstract boolean isAutoUpgradeEnabled()
        Is the automatic upgrade of configs enabled?
        Returns:
        true if enabled
      • performChanges

        protected abstract void performChanges()
        Perform any change to the settings or other classes at the end of configuration load
      • checkOutdatedConfigs

        protected void checkOutdatedConfigs​(String outdatedMessage)
        Check for outdated configs
        Parameters:
        outdatedMessage - the outdated message to print