Class ConfigUpdater

java.lang.Object
org.mcmonkey.sentinel.utilities.ConfigUpdater

public class ConfigUpdater extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    fixComments(com.freneticllc.freneticutilities.freneticdatasyntax.FDSData user, com.freneticllc.freneticutilities.freneticdatasyntax.FDSData correct)
     
    static boolean
    transferKeys(com.freneticllc.freneticutilities.freneticdatasyntax.FDSSection fileSection, com.freneticllc.freneticutilities.freneticdatasyntax.FDSSection correctSection)
     
    static String
    updateConfig(String configFile, String correctConfig)
    Adds missing entries to a config file, based on a modern config file.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigUpdater

      public ConfigUpdater()
  • Method Details

    • updateConfig

      public static String updateConfig(String configFile, String correctConfig)
      Adds missing entries to a config file, based on a modern config file. Returns the patched config if patches were made, otherwise returns null.
    • fixComments

      public static boolean fixComments(com.freneticllc.freneticutilities.freneticdatasyntax.FDSData user, com.freneticllc.freneticutilities.freneticdatasyntax.FDSData correct)
    • transferKeys

      public static boolean transferKeys(com.freneticllc.freneticutilities.freneticdatasyntax.FDSSection fileSection, com.freneticllc.freneticutilities.freneticdatasyntax.FDSSection correctSection)