Interface Settings.ConfigUpgradeTask

  • Enclosing class:
    Settings

    protected static interface Settings.ConfigUpgradeTask
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean doUpgrade​(String version, File file, org.bukkit.configuration.file.YamlConfiguration yaml)
      This method is called after a backup file has been created Returning false, indicates that the upgrade failed and that the current config should be replaced with the default one
    • Method Detail

      • doUpgrade

        boolean doUpgrade​(String version,
                          File file,
                          org.bukkit.configuration.file.YamlConfiguration yaml)
        This method is called after a backup file has been created Returning false, indicates that the upgrade failed and that the current config should be replaced with the default one
        Parameters:
        version - The current config version or "-1" if none set
        file - The config file
        yaml - The current YAML-File
        Returns:
        true on success, false on failure