java.lang.Object
com.ordwen.odailyquests.commands.admin.convert.SQLConverter
Direct Known Subclasses:
YAMLtoMySQLConverter, YAMLtoSQLiteConverter

public abstract class SQLConverter extends Object
  • Constructor Details

    • SQLConverter

      public SQLConverter()
  • Method Details

    • convertData

      protected void convertData(org.bukkit.configuration.file.FileConfiguration progressionFile, SQLManager sqlManager)
      Converts a YAML progression file to SQL rows.

      For each player UUID found in the YAML configuration, this method reads:

      • timestamp and achievement counters
      • all quest progressions
      Then it builds a PlayerQuests instance and persists it through the provided SQLManager.
      Parameters:
      progressionFile - the YAML progression configuration
      sqlManager - the SQL manager used to save progressions